git reset --hard HEAD^
git tag 1.0.0[tag version] -a
[Enter tag message, must do!]
git push origin --tags
Just do
git commit --amend -m "Fifth commit. Nothing at all! I known happiness is waiting"
After that, pushing it or edit commit comment again, so still must pushing it :v!
First
git commit --amend -m "Fifth commit. Nothing at all! I known happiness is waiting"
And then
git push --force //Must do, I forgot this, and see nothing change in hub. Wonder why? :v, unpushed, why can see :v!
git stash
Get stash list
git stash list
Apply lastest stash
git stash apply
git checkout -- filePath/fileName
git checkout -b cwagdev-patch-1 master // (cwagdev-patch-1 is patch version which sent by PR)
git pull https://github.com/cwagdev/iLL.git patch-1 // After change branch (now is cwagdev-patch-1 branch), must pull it
// Then, resolve conflict manually
// After conflicts are resolved, must commit
git commit -a -m "Removed ASIHTTPRequest via cwagdev PR" // Now, still on cwagdev-patch-1 branch
git checkout master // back to master branch
git merge cwagdev-patch-1 // merge cwagdev-patch-1 branch to master branch
git push origin master // push merged code to master
// DONE
git reset --hard HEAD
git clean -fdx // To remove all untracked files
git add -A // stages All
git add . // stages new and modified, without deleted
git add -u // stages modified and deleted, without new
git add -A . // equivalent git add . + git add -u
git fetch origin -v
localhost:CodeSnippets$ git fetch origin -v
From https://github.com/hugo53/iCodeSnippets
= [up to date] master -> origin/master