Article from GitLab Documentation :
Production branch with GitLab flow
# git branch
Git diff command allows to list the different files between the two branchs
# git diff –name-status master..another_branch
Issue when execute git diff command on a file and got :
diff --git a/your_file b/your_file old mode 100644 new mode 100755
If you see this, it is because the permissions of your_file has changed.
For information, the unix file permission mode(644=rw_r__r__ which means read and write for user, only read for group and only read for others, the same for 755=rwxrw_rw_, x for executable).
To disable the comparaison of file mode, the command to execute :
git config core.filemode false
This article is not a tutorial of git command, there are already so many articles explained the usage of git.
So it is only a sticky note for me, only !
To pull a project, the command is pull or fetch, and to override local change, the option is –hard.
git fetch --all
git reset --hard origin/master
Git history (got from wikipedia, funny definition, like geek)
Git is a distributed revision control system with an emphasis on speed. Git was initially designed and developed by Linus Torvalds forLinux kernel development. Every Git working directory is a full-fledged repository with complete history and full revision tracking capabilities, not dependent on network access or a central server. Git’s current software maintenance is overseen by Junio Hamano. Git is free software distributed under the terms of the GNU General Public License version 2.
Linus Torvalds has quipped about the name “git”, which is British English slang for a stupid or unpleasant person: “I’m an egotisticalbastard, and I name all my projects after myself. First Linux, now git.”