[Git] Connection refused – Disable sslVerify


Background : To clone a git project
Error :

Solution :

git config --global http.sslVerify false



[Git] Gitlab flow

Article from GitLab Documentation :

Production branch with GitLab flow



[GIT command] Branch

Here are some git commands concerning the manipulation of branchs.

# List all the remote branchs

# Checkout a remote branch

$ git checkout -b my_local_branch origin/my_remote_branch

# Delete a local branch

$ git checkout -d my_local_branch


[GIT commands] Kickoff

To start a git project, it is better to know some useful commands in order to understand how it works. This article allows me to memory some useful git commands.

I suppose there is aleready a git remote repository (something like github, bitbuckets, gitlab etc.) and already done “git init” in local directory.

So let’s begin.

Two things we have to consider :

  1. We have nothing in our local environment, what we want to do is just donwload the code from remote repository
    • First of all, find the l’url of the remote repository (for example github), I’ill take Microsoft TypeScript for instance. We have two types of URLs : SSH or HTTPS. Take one of them. Normally, there is no difference.
    • Execute “git clone ” command with the url

    Continue reading

[Git] Git diff without comparaison file mode

Issue when execute git diff command on a file and got :

diff --git a/your_file b/your_file
old mode 100644
new mode 100755

If you see this, it is because the permissions of your_file has changed.
For information, the unix file permission mode(644=rw_r__r__ which means read and write for user, only read for group and only read for others, the same for 755=rwxrw_rw_, x for executable).

To disable the comparaison of file mode, the command to execute :

git config core.filemode false

[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

[Jekyll] error installing Jekyll

Background : Intall Jekyll.
Jekyll is a free software written in Ruby, it can tranform plein text, I mean sometimes the text can be a feed, into static websites and blogs.
I want to, of course trying with the fresh things, tranform my wordpress blog to a github one, sounds great.

Error :
You know the development does not have the favorable wind all the way, first time I tried it, I got an error. And this error appears not only in Mac, but also in Ubuntu.
Continue reading