Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

github

//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

git init
//add all
git add .

//cancel adds
git reset
Source by en.wikipedia.org #
 
PREVIOUS NEXT
Tagged: #github
ADD COMMENT
Topic
Name
2+9 =