ubuntu下使用git

1.Generating SSH keys

参考:https://help.github.com/articles/generating-ssh-keys/

若执行ssh-add /path/to/xxx.pem是出现这个错误:Could not open a connection to your authentication agent,则先执行如下命令即可:ssh-agent bash

2. git status:查看状态

    git commit -m "comments":

  git push -u origin master:

  git pull 获取新版本

 

原文地址:https://www.cnblogs.com/njuzwr/p/4823464.html