git使用笔记

git gui

1、在远程创建库,得到一个远程仓库地址;

2、在本地项目根目录文件夹,右击->Git Init Here 创建本地仓库;

3、在本地项目根目录文件夹,右击->Git Gui,remote -> add,名字:projectname,location:https:~/projectname.git,点击Add;

4、remote -> fether;

5、扫描,缓存改动,提交;

6、上传 -> 勾选强制覆盖,点击上传;

7、OK,项目被上传至远程仓库了;

8、从远程克隆,修改,提交,上传;


git bash

1. create a local repo, assumming you have a project that is programing, git init at the root directory of the project; 

$git init

$git add -A

$git commit -m "a commit message"


2. upload it to remote repo, assumming you have a remote repo,https://git.~~~.com/path/gitname.git

$git remote add origin https://git.~~~.com/path/gitname.git (origin is a label)

$git fetch origin

$git merge origin/master

$git push origin master  

and then, hope you upload your project to a remote repo successfully!





评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值