git 基本操作

mac2022-06-30  95

1、git init

2、git config --global user.name "[yourname]"

     git config --global user.email "[youremail]"

3、git add [-A/-u/-i]

4、git commit -m "[your message]"

5、git push -u [origin] [master]

 

6、git remote add [git address]

7、git clone [git address]

 

例外:生成ssh公钥命令如下:ssh-keygen -t rsa -C "[your email]" 然后一路回车即可

 

转载于:https://www.cnblogs.com/yako/p/4378445.html

相关资源:JAVA上百实例源码以及开源项目
最新回复(0)