Wednesday, April 25, 2012

Git Tips

For you who use github or git, these are several tips for you.
Getting your remote url
git remote -v
Will show up remote name, url, and fetch/push status
Changing remote url
git remote set-url [remote_name] [new_url]

Getting your ssh default key (via git bash)
ssh-keygen -y
Entering your passphrase, then you can get your ssh key which you can copy to your github or other git compatible versioning control
Pushing to your newly created git
git push [git_name] [branch]
eg:
git push my_first_git master

Thursday, April 19, 2012

Git/SVN

Recently I need to keep track my project which files is updated, changed or added even deleted. The project is maintained not just by me, but other person as well which we do different things, but may involve in modifying a single file in a project, thus I do a research in internet for finding out tools to do this and, taa daa... I find out github (or git) and TortoiseSVN or mostly just called that Source Version Control (SVN).

However, pushing my project, which not an open source project and for internal corporate used only, I can't simply use github (actually I can, but I need to pay, and I don't think my company would like to pay for that), so I do searching again if there's other tools whatever it is do the same, but I want to do it locally (whether I pushed it into my own computer or even company's server later) and I found out GitStack.

I used it daily now, and I must quite impressive by it capabilities. Very easy to setup and use on my Win7 machine (git is quite hard to learn, however). I also using TortoiseSVN though for cloning other projects, but the principal behind it just similar to git. Once you know the basic, it is applicable to other SVN as well. But, still I like git more. How about you?

Monday, April 9, 2012

Several vim tips

To convert tab into space tab (if you set so)
:retab
Open split at 50:50 proportion of windows height
:sp
Set mark in column xx
:set cc=xx
I will add more and more later. Ciao...