最新消息:

工具第2款:Git我常用的方法

基本工具 杨红伟 4842浏览 0评论

一:描述:

Git是目前世界上最先进的分布式版本控制系统(没有之一)。

Git有什么特点?简单来说就是:高端大气上档次!

我在这里就不说使用了,就列出我最最常用的操作。

想看教程的,推荐《Git教程 - 廖雪峰的官方网站》,网址

http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000

二:配置

git config --global user.name "hongweizhiyuan"
git config --global user.email "403236160@qq.com"

三:操作开始

1、 git init
2、 git remote add origin https://git.oschina.net/hongweizhiyuan/xxxxxx.git
3、 git add --all
4、 git commit -m "update"
5、 git pull origin master  (如果报错,输入它)
6、 git push origin master  (然后输入用户名和密码即可上传!)

四:复制到本地

git clone https://git.oschina.net/hongweizhiyuan/xxxxxx.git  然后输入用户名和密码


Warning: Use of undefined constant PRC - assumed 'PRC' (this will throw an Error in a future version of PHP) in /www/wwwroot/www.ijquery.cn/wp-content/themes/d8-3.0/comments.php on line 17
发表我的评论
取消评论
表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址