You are on page 1of 2

GIT COMMANDS

1)Git clone

git clone <https://name-of-the-repository-link>

2)Git branch

git branch <branch-name>

git push -u <remote> <branch-name>

3)viewing branches:

git branch or git branch --list

4)deleting a branch:

git branch -d <branch-name>

5)git checkout

git checkout <name-of-the-branch>

git checkout -b <name-of-the-branch>

6)git status

gives the neccessary information about the current branch

7)git add

git add <file>

git add*

8)git commit

git commit -m "commit message"

9)git push

git push <remote> <branch-name>

git push --set--upstream <remote> <name-of-the branch>

or

git push -u origin <branch_name>

10)git pull

git pull <remote>

11)git revert
git revert

12)git merge

git checkout dev

13)git configuration

git config --global user.name <siddhartha kundarapu>

git config --global user.email <siddhartha.kundarapu5@gmail.com>

You might also like