Skip to main content

Posts

Showing posts with the label Git

Git Cheat Sheet

Git is the free and open source distributed version control system that's responsible for everything GitHub related that happens locally on your computer. This cheat sheet features the most important and commonly used Git commands for easy reference. SETUP set a name that is identifiable for credit when review version history. git config --global user.name “[firstname lastname]” set an email address that will be associated with each history maker. git config --global user.email “[valid-email]” set automatic command-line colouring for Git for easy reviewing. git config --global color.ui auto SETUP & INIT initialize an existing directory as a Git repository git init Retrieve an entire repository from a hosted location via URL. git clone [url] STAGE & SNAPSHOT Show modified files in working directory, staged for your next commit. git status Add a file as it looks now to your next commit. git add [file] Unstage a file while retaining the changes in working