Google+

Friday, July 10, 2015

Git most often used command

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

Monday, July 6, 2015

git ssh low speed push solution

git push uses ssh, if you meet low speed push problem, try do this:
  1. $ git remote -v
  2. if you see your git folder begins with http://, please use
    git remote set-url origin commande to change it to ssh url.
  3. $ sudo sysctl -w net.ipv4.tcp_sack=0
  4. then git push