If you are are coder, git is a must have tool that you should be familiar with, is git.
Git is a source code management tool created by Linus Torvald. This distributed version control system, manage your repository. It is fast, and also equipped with a lot of flexibility.
Using git is easy. It only takes a few commands. After a while, you have memorized the commands well.
In order to use git, you need to install git
In Arch, it is in extra repo.
There is a very popular free git website, github.com. Just sign up, and create a new repository.
I’m using git for my github.io site.
After create a new repository, github will give a short notification similar to mine below.
Just follow below step in your directory.
git init git add README.md git commit -m "first commit" git remote add origin https://github.com/epsi-rns/dotfiles.git git push -u origin master …or push an existing repository from the command line
I have already prepared my local git Directory. So every git commands must be within this local directory.
For daily updating, all you need is this command
I use it over and over again. Exactly in that sequence.
Luckily linux shell can remember the command, so you don’t need to type it again and again.
For convenience, I like to use powerline to show master repo in my shell. You can see in this figure, it shown in right position of the shell.
Unfortunately bash doesn’t support this feature, so I use fish instead.
You can see git in action in this figure bbelow
Read The Fine Manual
RTFM as usual.
After a while you will get bored with those basic commands, then you might want to try a more geeky command. Just read git oficial documentation.
You can tag a specific point in your history, Here, is our recurring command.
Thank you for reading
- December 2016
- November 2016
- October 2016
- September 2016
- August 2016
- July 2016
- Install Awesome WM in Debian
- Install Awesome WM in Arch Linux based Distribution
- Jekyll Installation on Debian
- Jekyll Installation on Arch/Manjaro
- Install Yaourt, the AUR Helper
- Analyze Services in Linux Boot Process
- Create Your Own Monitoring Script
- Step by Step Guidance to be a Webcoder
- The Difference Between DE, Shell, WM and Compositor
- Elapsed Time, Yet Another Jekyll Liquid Port
- Create Stripes Using Inkscape to Decorate Blog Post
- Jekyll Post Archives Without Plugin
- Meet Our Friend, Regular Expression
- May 2016
- April 2016
- March 2016
- February 2016