Git Basic Commands

First install git: https://git-scm.com/downloads

Check git version by

git –version

git config

git ls-remote

git branch

https://confluence.atlassian.com/bitbucketserver/basic-git-commands-776639767.html

$ git config --global user.name "John Doe"
$ git config --global user.email johndoe@example.com

git config –global –edit

git ls-remote

git remote -v

git branch newbranch

git branch -d branch

git branch -D branch

git branch -m branch

git branch -a

gitignore
directory/
*.log

git reset

git rm -rf –cached .

git push -d origin branchnname

git checkout branch

git merger previousbranch

Leave a Reply

Your email address will not be published.

error: