How to manage my software configuration at github

  |   Source

Problem

Here is the situation:

  • I've set up a repository at github to store my configuration of specifi software.
  • I synchronize the configuration with several computers
  • All these computers belongs to me only.

My issue is after using `git pull/push` for some time. My commit history looks not linear.

Solution

Simple. I need use `git pull –rebase origin master` instead of `git pull origin master`

Rebase will usually rewrite my commit history at your local branch. It's totally fine because I won't share the software configuration on my local computer. If I want to share my configuration, I will use the public url at github.

Comments powered by Disqus