[Git] git rebase (reduce merge commit)

In foss, we fork git project from upstream our account and clone to local.

We need to make sure that the respository is up-to-date, so sync to upstream is necessary.

But sometimes when we use git pull which is combined as git fetch and git merge, nonecessary merge occurs.

To avoid redundant merge commit, we  use git pull --rebase instead.

redfish[~] $ git pull --rebase upstream master
redfish[~] $ git push origin master <-f>

<-f> : force updated, that’s because you only rebase the local, but origin doesn’t not rebase.



[foss] pcmanx compile

redfish [~]$ git clone https://github.com/pcman-ptt/pcmanx
redfish [~]$ sudo apt-get install libgtk2.0-dev
redfish [~]$ sudo apt-get install libglib2.0-dev
redfish [~/pcmanx]$ ./autogen.sh
redfish [~/pcmanx]$ ./configure
redfish [~/pcmanx]$ make
redfish [~/pcmanx]$ sudo make install

The pacmanx binary is in /usr/local/bin/