![github command line cheat sheet github command line cheat sheet](https://i.kinja-img.com/gawker-media/image/upload/s---mD0faxg--/c_fill,fl_progressive,g_center,h_450,q_80,w_800/qjs7ktntvflsn1dsrinf.jpg)
- #GITHUB COMMAND LINE CHEAT SHEET FOR MAC#
- #GITHUB COMMAND LINE CHEAT SHEET INSTALL#
- #GITHUB COMMAND LINE CHEAT SHEET CODE#
![github command line cheat sheet github command line cheat sheet](https://media.cheatography.com/storage/thumb/davechild_linux-command-line.600.jpg)
Replace “filename.extension” to whatever file you are trying to add like “index.html”.
#GITHUB COMMAND LINE CHEAT SHEET INSTALL#
This only needs to be done once when you first install Git. git config -global user.name "Your Name" git config -global user.email sets up your information that is used every time you commit. This is the first thing you want to do with a new project. A repository or “repo” is a collection of all the changes you’ve made to your project over time and will build a history of these changes. If you are using Git Bash you can right-click the project folder and select “Git Bash Here” and it will start you in that working directory. Using Git Bash or the Terminal navigate to the actual project folder.
![github command line cheat sheet github command line cheat sheet](http://2.bp.blogspot.com/-ZQwJBHt6UvM/VZVq8ZX6AtI/AAAAAAAAAJ4/UmZH-eK8yrE/s1600/linux-cheat-sheet.png)
Now you have Git, the command line tool, and a GitHub account, where you will be uploading your repositories. Once installed go ahead and head to GitHub create a free account.
#GITHUB COMMAND LINE CHEAT SHEET FOR MAC#
For Mac users, using the Terminal will be completely fine. For Windows users I suggest also installing Git Bash, which is available when installing Git. The first thing you are going to want to do is to download Git. So, use this to get you started but do keep expanding your knowledge. The more you use Git, you will encounter situations where this will absolutely not be enough but there are many resources out there that can aid you when that occurs. Git is complex and there are many things to learn but to get started you really only need to know a few key things to get started. This allows you and your peers to retrieve the latest copy of your project while also allowing multiple people to work on it without hindering each other. This is where you will be uploading your history using Git. GitHub actually has a lot to it but for now, we are going to keep it simple. You might not understand what a repository is right now but hang in there, you will by the end of this. GitHub, commonly confused with Git, is actually a repository hosting service. This is the opposite of SVN (subversion) where the entire history is stored in only one place. The history of your project and the history of the same project that’s being worked on by your peers will all have copies. This basically means it saves the entire history of the project. It is an open source DVCS (distributed version control system) that runs in the command line. Git is the actual version control system.
![github command line cheat sheet github command line cheat sheet](https://i.pinimg.com/736x/59/17/3f/59173f60f372c844ebe8cbb2fbf86f70.jpg)
#GITHUB COMMAND LINE CHEAT SHEET CODE#
Ever messed up your code so bad you felt like it would just be easier to start from scratch? With version control, you can just revert back to a stable version free from all of those crazy ideas you wanted to implement at 2 am. Working on groups projects will become so much easier to manage. Also, this will make your personal experience better by being able to switch computers without having to worry about saving your project on a flash drive. Git is almost certainly used in any professional environment and the more you familiarize yourself with it early on the more valuable you will be to employers. This is a barebones basic guide to get you started with Git and give you a solid foundation to develop further. If you aren’t already familiar with version control and incorporating it into your daily workflow, now is the time to get started.