1. add untracked files: git add *
2. show status in a git folder: git status
3. remove file A in git folder: git rm A
4. rename A to B: git mv A B
5. commit with comment: git commit -m 'message'
6. push: git push
Friday, July 10, 2015
Monday, July 6, 2015
git ssh low speed push solution
git push uses ssh, if you meet low speed push problem, try do this:
- $ git remote -v
- if you see your git folder begins with http://, please use
git remote set-url origin commande to change it to ssh url. - $ sudo sysctl -w net.ipv4.tcp_sack=0
- then git push
Subscribe to:
Posts (Atom)