[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

Git commands

Git history (got from wikipedia, funny definition, like geek)

Git is a distributed revision control system with an emphasis on speed. Git was initially designed and developed by Linus Torvalds forLinux kernel development. Every Git working directory is a full-fledged repository with complete history and full revision tracking capabilities, not dependent on network access or a central server. Git’s current software maintenance is overseen by Junio Hamano. Git is free software distributed under the terms of the GNU General Public License version 2.

Linus Torvalds has quipped about the name “git”, which is British English slang for a stupid or unpleasant person: “I’m an egotisticalbastard, and I name all my projects after myself. First Linux, now git.”

Continue reading