[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.
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.

2. Initialize the local directory as a Git repository.

git init

3. Add the files in your new local repository.

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.
Continue reading