Repository for GIT Basic(s), first pull request(s), first contribution(s)
git clone <URL of Repository>
Example:
git clone https://github.com/ai-gaanv/Hello-GitHub.git
git checkout -b <New Branch Name>
Example:
git checkout -b Children-OnPremise-Branch_one
Click on button
<img align="right" width="300" src="images/branch.png" alt="Click on button" />
Type branch name in textbox and Hit Enter
Checkout the branch where to add the changes, then hit the merge.
Checkout to branch where to add the changes:
git checkout <BranchName-To-MergeIn>
Merge command with path of branch to pull the changes from:
git merge <Source-BranchName>
git merge origin/Children-branch-one
Use Add command to stage the changes for next commit
git add images/branch.png
-m <message>. This adds the message for commit
git commit -m "Change Details"
-a Includes all changed files in commit.
git commit -a -m "Change titles and styling on homepage"
-amend helps to rewrite the last commit
Ensure the expected branch is checked out(if not, Can use git checkout)
To push the changes:
git push <target> <source>
ex: git push origin <branch-name>
Once push(s) is done, one can use below one as connection is now there
git push