Git via ssh and gnome-terminal

Firstly need to install git itself with the following

yum install git -y --enablerepo rpmforge

After that setup the SSH key correctly .. so that can login to remote central repository without prompt.

Then clone a copy from remote central repository :
for example :
GIT packagename is “eScanner”
at the “mesinphotostat” server.

git clone namran@mesinphotostat:eScanner

it shall download all the necessary file from remote .

then.. ammend the local copy.. work on it whatever.

vi scannerMenu.xml

then commit the change to local repo first.

git commit -a

if would like to change variable for user email .
run the following :

git config --global user.email git-do-not-reply@namran.net

then.. to push to remote central repository again:

git push scannerMenu.xml

that’s all.

.. still avoiding eclipse.

eclipse got a lot of click-and-click done.. but somehow I still prefer command line .. haha.

Related Post

2 Responses

  1. ahstod says:

    I have the same issue with eeebuntu on eeepc too, sudo this, sudo that.

    And feels weird typing my own password instead of root’s.

    what to do, stuck with centos/rhel for work … and since use the work machine so much, might as well make the other home machines the same for familiarity (except for the eeepc, for which the default centos is a bit too slow).

    Reply
  2. HawkEYE says:

    that remind me on one event at one of my project site.
    requirement was easy..
    “need to set a new ip address to the machine.”

    and the machine happened to be running Ubuntu 7.10 (Gutsy Gibbon) because someone else already installed it earlier..

    First few minute wasted to guess the root password as the one who installed it also not quite familiar..

    then only realized it need normal user password instead of root password.. (one of occupational hazard i think.)

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *