SoureTree & Git

1. Version Control

  • Open SourceTree
  • 'File' -> 'New' -> 'New' -> 'Create Local Repository'
  • 'Repository type': Git & Select 'Destination Path'
  • Stage & Commit

If you want go to certain version, right click it and select 'checkout'

2. Working Together

2.1 On MAC

  • Open Terminal
ssh-keygen
# then set password 
cat .ssh/id_rsa.pub
# then copy the key content
  • Open www.github.com
  • Profile Settings -> New SSH Key -> Input titile name & paste the key content
  • Copy Repository URL from Github
  • SourceTree -> Repository -> Repository Settings -> Remote -> Add -> set Remote name to be origin & paste URL
Now we can upload our change to Remote

click 'origin' -> click Push icon -> click master branch

  • accept server's key: YES

Now you are gonna load your own SSH key to identify yourself to the server. If you are on a mac, you only need to provide your paraphrase if you saved the key at default location. In windows, you can use PuTTY SSH key agent, 'Pageant'

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 12,162评论 0 10
  • 护肤是女人一辈子都要注重的工作。我们的肤质并非一成不变。随着年龄的增长、后天的保养,肤质会产生一定的变化,因此护肤...
    冠丽阅读 6,867评论 0 2
  • 漫不经心,简陋的生活着 哪里有什么五彩斑斓,飘飘忽忽 把自己按进这灰突突的人世 才发现 简陋就是生活的本质
    韩盼盼_0ed9阅读 1,105评论 0 0
  • 一晃三个年头了,第一次通过用书信的形式来写你。说写你不如说是写我俩,就是看不透你心里装没装有我。要没有,我这样盲目...
    跟住阅读 2,454评论 2 1
  • 上肢项目 项目一:引体向上 -35 12*1, -30 12*3 项目二:高位下拉 25kg 12*3 30kg...
    oppy阅读 851评论 0 0