[Mac] Github + atom

Good news !

From mac os 10.8, it begins to support Github, we don’t need to install a third-part application, sounds good.

After got a try, it is really good, just create a repository and do the git init command, after we can clone the existing project or create a new one.

 

 

Screen Shot 2014-12-13 at 01.40.59

 

C’est pas fini. That’s not all, Github provided several methods to visualize the project.

Screen Shot 2014-12-13 at 01.43.22

 

And I found a very useful, even better than Sublime, because it doesn’t need to make the complex configuration, and easy to install the tools, for example, vim mode etc.

Screen Shot 2014-12-13 at 01.45.56

[github] add existing project to github

Background : Add an existing local project to github repository.
添加本地项目到github上
Although the github’s helping article Adding an existing project to GitHub using the command line is very complete, but it existing alwarys some errors.
And I will try to add some chinese translation some command just for understanding.

So the mainly procedure is 主要过程:
1. Create a new repository on GitHub.
现在github上创建一个仓库,说白了就是创建一个项目。

2. Initialize the local directory as a Git repository.
初始化本地项目。

git init

3. Add the files in your new local repository.
添加项目到本地仓库里。在没跟github上项目合并之前,本地和远程的算是相对独立的。

git add .

4. Commit the files that you’ve staged in your local repository.
提交项目到本地仓库。

git commit -m 'The comment for your commit'

One thing you have to know here is that, commit is just record your local changes to the project, but the changes hasn’t been combined with your remote project.
就跟刚才强调的一样,我们只是把项目提交到了本地的仓库里,这个时候它还没有被合并到远程项目里,所以如果你试着刷新一下github上的页面,会发现什么都没变。
Continue reading