Professional Documents
Culture Documents
Git Tutorial
Git Tutorial
Git Tutorial
Then we add the file in a staging area so they can be tracked if changes are made
to them. that is where you decide which file you want to commit, to see the files
in the staging area we say: git status
To add to a staging area so we can track the changes, we use: git add "file(s)".
Gitignore - omitting certain files from your local and remote repo
Branching - Lets say you come up with a new idea and want to try it, instead of
commiting to the main branch, we can create a side branch and starting commiting to
it.
To merge, go to the main branch and merge from there with this command: git merge
"branch name"
forking allows you to copy someone else's repo to your own github account, it is
different from cloning because copy allow you to copy the entirety of the repo to
your local machine. But forking copies it to your account so you can make change
from there as your own repository.