Answers for "git common commands"

12

common git commands

git init
git add *Enter File Name Here*
git commit -m "first commit"
git remote add origin *Enter URL Here*
git push -u origin master
Posted by: Guest on March-16-2020
8

git common commands

git init
//add all
git add .

//cancel adds
git reset

//cancel commits
git reset HEAD^
//cancel last 3 commits
git reset HEAD~3

//when first commit
git push -u origin master

//remove remote origin
git remote remove origin

//reset remote origin
git remote add origin https://github.com/yourname/project.git
Posted by: Guest on June-14-2020
0

git basic commands

git push origin :<branchname>
Posted by: Guest on September-12-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language