2018-12-20 git使用

2018-12-20  本文已影响0人  盛小树

1、Mac配置git环境:

https://blog.csdn.net/shenlichuang/article/details/78987377

2、用的mac,后来google下找到并参考了这个问题 https://stackoverflow.com/que... 下的第二条 300 多赞的那个答案, 

重新设置了一下凭证,用的命令是 

git remote set-url origin https://yourusername@github.c... 

然后就可以push了

3、git commit 报 "Changes not staged for commit:"

---git commit -am "modified Cheatsheet.html"

-a 表示 add

4、上传代码:

git commit -am ""

git push origin dev

在git里去merge代码

上一篇 下一篇

猜你喜欢

热点阅读