git命令

来源:互联网 发布:js currenttime 编辑:程序博客网 时间:2024/06/03 19:25

之前用的命令换账号后不管用了很纠结,初次配置上传环境重新爬坑,怕以后再忘了,留个记录
git init
git add .
git commit -m “pro”
git remote add origin https://github.com/q771307617/zjhy.git
git push -f https://github.com/q771307617/zjhy.git

http://blog.csdn.net/kangvcar/article/details/72773904
http://www.cnblogs.com/mengdd/p/3447464.html
附带两个当时git到的一些方法。哪里报错查哪里,错的多了就会了

如果你是第一次的话需要绑定一下你的用户名和邮箱
git config user.name “moumoumou”
git config user.email “moumoumou@163.com”

原创粉丝点击