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
Showing posts with label Linux troubles. Show all posts
Showing posts with label Linux troubles. Show all posts
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
Friday, May 22, 2015
Set JRE environment for smartgit in Linux
1. download smartgit linux version, try run ./smartgit.sh in the its bin folder
2. if it complains JRE version problem, run sudo apt-get install openjdk-7-jre
3. locate to your openjdk-7-jre path, see here
4. gedit ~/.smartgit/smartgit.vmoptions, add line: jre = path-to-your-openjdk
5. redo step 1
2. if it complains JRE version problem, run sudo apt-get install openjdk-7-jre
3. locate to your openjdk-7-jre path, see here
4. gedit ~/.smartgit/smartgit.vmoptions, add line: jre = path-to-your-openjdk
5. redo step 1
Subscribe to:
Posts (Atom)