- In place of
<GitHub Repository>
add the GitHub Repository's URL
git clone <GitHub Repository>
- In place of
<file name>
add the file name
-m
is for writing the commit in the command line itself
git commit -m " descriptive commit message"
origin
is like a place holder for the <Address of the repository(.git)>
git remote add origin <Address of the repository(.git)>
- push your commits on branch
<branch name>
git push -u origin <branch name>
- Create a new branch with name
<new branch name>
git branch <new branch name>
- Jump from the current branch to another branch
<branch name>
git checkout <branch name>
- unstage a
file name
while retaining the changes in working directory
- merge the specified
<branch name>
history into the current one
- fetch down all the branches from that Git remote
<alias>
== origin
- fetch and merge any commits from the tracking remote
<branch name>