$ git clone 'ssh clone url'
$ git add .
$ git commit -m "Your message"
$ git push -u origin master
$ git push origin master --force
$ git pull
$ git reset --hard HEAD~1
$ git push origin HEAD --force
$ git rm -r --cached some-directory
$git commit -m 'Remove the now ignored directory "some-directory"'
$ git push origin master
https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet https://confluence.atlassian.com/display/STASH/Markdown+syntax+guide https://github.com/tchapi/markdown-cheatsheet/blob/master/README.md
$ echo '.idea' >> .gitignore
$ git rm -r --cached .idea
$ git add .gitignore
$ git commit -m '(some message stating you added .idea to ignored entries)'
$ git push
http://schacon.github.io/history.html
then run: $ git push --force
- How do I update a GitHub forked repository?
- Pull new updates from original GitHub repository into forked GitHub repository
-
$ git rebase develop
-
$ git add -u
-
$ git rebase --continue
-
$ git push --force origin sample(your branch name)
git fetch --all
git reset --hard origin/master
git clone -n <repo_name>
git checkout <commit_sha>
git checkout -- a // a is directory
git commit --allow-empty -m "Trigger"
git push --force
git branch -m <old_name> <new_name>
https://stackoverflow.com/a/19859644/3650955
git rev-parse --short HEAD
git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d
git update-index --assume-unchanged