1、进入文件目录
$ cd d:
$ cd dir_1/dir_2
2、初始化 git 管理
$ git init
3、修改提交用户名称
$ git config user.name ‘Seon’
4、添加文件
$ git add *
5、查看缓冲区
$ git status
6、创建提交节点
$ git commit -m ‘v_1.0’
7、建立与远程仓库的链接
$ git remote add origin https://github.com/Username/xxx.git
8、推送至远程仓库
$ git push -u origin master
9、追加提交
$ git add newfile
$ git status
$ git coomit -m ‘new’
10、合并更新
$ git pull origin master
$ git push -u origin master
11、异常处理
11.1、推送扩容至 500M
$ git config http.postBuffer 524288000
11.2、取消验证输入
$ git config --global credential.helper store
$ git config --global credential.helper get
11.3、设置令牌验证
主页右上角 Settings -> 左下角 Developer settings -> Personal access tokens

4833

被折叠的 条评论
为什么被折叠?



