Git 命令

不常用Git命令,时间久了经常忘记,记录一下。


1、git clone ssh://用户名@ip地址/git/Rexing.git

2、查看:git status

3、查看修改的地方:git diff a.m|less

4、提交代码:git commit -m "fix ",这里出现

On branch master

Your branch is up to date with 'origin/master'.

改用:git commit -am "fix "

5、git push origin master或者git push

你可能感兴趣的:(Git 命令)