Github

如何将一个已存在的目录转换为一个 Git 项目并托管到 GitHub 仓库https://itgeeker.net/how-to-an-existing-git-initiate-foler/

在Windows下使用Git Bash,用的是Linux命令,常用几个文件操作命令如下:

 

 

Windows命令Linux命令意义
cd e:\xxxcd /e/xxx切换到xxx目录
cdpwd显示当前目录路径
dirls列出当前目录内容
copy nul xxx.txttouch xxx.txt生成名为xxx.txt的空文件
del xxx.txtrm xxx.txt删除xxx.txt文件
md xxxmkdir xxx建立xxx目录
rd /s xxxrm -r xxx
删除xxx目录

2018/03/06

git command

 

1.git init  初期化git directory

2.git clone URL

  copy  remote repository to local

3. git status

4.git diff

5.git log

6.git add xxxx

 add modified file to commit

5. git commit( git commit  -am "comment" , -a add all modified to commit)

6.git push

  submit to remote repository

7. git branch

list branch and * represent to current branch

7.1 git branch branchname

   create branch

    7.2 git branch -v

 list branch with last commit num...

8 git checkout branchname

 switch branch

9 git merge branchname1

  merge branch to current branch

   show git branch list

10 git pull

  download new commit from remote repository

转载于:https://www.cnblogs.com/charles999/p/7270802.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值