Tags » Git

What is Git SCM? Summary from Git's site

git is a software that manages the timely snapshots of your source code.

Git stores and thinks about information much differently than these other systems, even though the user interface is fairly similar, and understanding those differences will help prevent you from becoming confused while using it. 1,197 more words

Ruby On Rails

Git add not working for folder with .git folder

Also you might get something like
fatal: Pathspec ‘some.file.name.goes.here’ is in submodule ‘some/folder/name’
Also you might notice, if you commit and pushed, only some skeleton of the of the folder structure without the actual files would be committed. 92 more words

yaourt: how to install it through terminal

As reported in the official page:

git clone https://aur.archlinux.org/package-query.git
cd package-query
makepkg -si
cd ..
git clone https://aur.archlinux.org/yaourt.git
cd yaourt
makepkg -si
cd ..

GWH!

Linux

git delete all local branches except some

Sometimes after a sprint, all the remaining branches are just taking up space.
Here’s a small snippet to remove all your local branches in one go. 70 more words

Rubu On Rails

TeamCity queries with powershell (for sake of healthy develop)

In the last entry I’ve shown how to create a PowerShell based git hook, passing following parameters to the hook for sake of validating it. The parameters were: 268 more words

Git

Git diff with filemode changes

Here we go, you changed the file locally say the mode from 644 to 775 or something and when you do the git status you will see the file permissions being changed and laid there – I know, it sucks.. 34 more words

Git tree view in CLI

Easy. Create an alias:

git config --global alias.tree "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset%n' --abbrev-commit --date=relative —branches”

then just run

git tree