mac上传工程到git截图


关键命令行

bob:~ apple$ cd /Users/apple/Desktop/Git

bob:Git apple$ touch README.md

bob:Git apple$ git add README.md

bob:Git apple$ git commit -m "first commit"

bob:Git apple$ git remote add origin [email protected]:liuboliu/newfiberstore.git

bob:Git apple$ git push -u origin master


完全过程:Last login: Mon Mar 12 10:33:39 on ttys001
bob:~ apple$ cd /Users/apple/Desktop/Git
bob:Git apple$ touch README.md
bob:Git apple$ git add README.md
bob:Git apple$ git commit -m "first commit"
[master 3a26d6f] first commit
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 README.md
bob:Git apple$ git remote add origin [email protected]:liuboliu/newfiberstore.git
bob:Git apple$ git push -u origin master
Enter passphrase for key '/Users/apple/.ssh/id_rsa':
Counting objects: 31, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (26/26), done.
Writing objects: 100% (31/31), 9.58 KiB | 2.39 MiB/s, done.
Total 31 (delta 2), reused 0 (delta 0)
remote: Resolving deltas: 100% (2/2), done.
To github.com:liuboliu/newfiberstore.git
 * [new branch]      master -> master
Branch master set up to track remote branch master from origin.
bob:Git apple$

期间要输入密钥密码。






猜你喜欢

转载自blog.csdn.net/liuxiaoxiaobo/article/details/79523917