Posts

Showing posts from September, 2018

GIT USEFUL COMMANDS

GIT USEFUL COMMANDS Notes taken while doing some research: GIT GENERAL CONFIGURATION SETTINGS : git config --global user.name "Name Lastname" git config --global user.mail "namelastname@gmail.com" Visualize changes in configuration : git config --global --list cat ~/.gitconfig GIT STARTING COMMANDS : Fresh start :  /*creates empty folder for project only with .git directory inside*/ git init git-demo  Start in existing project : /*execute in root folder*/ git init EXPLANATION ABOUT GIT, ADDS, COMMIT AND PUSH : As long as we are just writing and saving code, we are working in our local files. When we execute git status and files appear in red within "untracked files" section, it means that these files are not being tracked by git. We are just working locally with them, but not yet in the staging area. By the time we execute a "git add", we are adding the new files and change...