https://github.com/lifeisfoo/git-tao
https://github.com/lifeisfoo/git-tao
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/lifeisfoo/git-tao
- Owner: lifeisfoo
- Created: 2013-12-27T10:52:31.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2016-03-05T15:06:39.000Z (over 9 years ago)
- Last Synced: 2023-06-11T08:34:45.631Z (over 2 years ago)
- Size: 1000 Bytes
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Git Tao ☯
=======### Already moved files (without git mv)?
```
git add -u //will restore the peace
```### Forgot to switch branch before editing your files?
```
git add .
git stash
git checkout 'branchname'
git stash pop
git commit
```### Wrong remote tracked branch
```
git branch --set-upstream-to origin/my-default-fetch-branch
```### Wrong commit (amend)
Make all the changes you need, then:
```
git add .
git commit --amend
```### Wrong commit (already pushed)
Execute the _"Wrong commit"_ commands, then:
```
git push -f origin master
```