Giithub Sheet
Giithub Sheet
Cheat Sheet
Command-1: git init
This will create a .git repository in your 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. This is
the first thing you want to do with a new project.
Command-2:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
This sets up your information that is used every time you commit. This only
needs to be done
once when you first install Git.
This will create a file called .gitignore. You can open that file with a text editor
and write the
name of files or folders you want to be ignored from your repository. Ignored
files won’t show
up when you run git status to prevent you from committing files you’ve
previously said you
don’t want to commit or even know about their changes.