What is the staging area?]
If you think of it like you were moving furniture for a house then the staging area is inside the box and when you add things to the box (git add) then they are in the staging area. then you can add a commit to the changes with a message or a label on the box.
What does the -m switch do in git commit?
“-m” allows you to type a message to your commit for reference.
What is the difference between merging and rebasing?
Merging is a non-destructive operation. The existing branches are not changed in any way, merging ties together the histories of both branches, giving you a branch structure.
REBASING: has the potential to rewrite the commits. As an alternative to merging, you can rebase the feature
branch onto master
branch This moves the entire feature
branch to begin on the tip of the master
branch, effectively incorporating all of the new commits in master
. But, instead of using a merge commit, rebasing re-writes the project history by creating brand new commits for each commit in the original branch.
What does git clone do?
Git clone creates a copy of a repository in a local directory on your computer
What is forking?
A fork is a copy of a repository. Forking a repository allows to freely experiment with changes without affecting the original project. The user is then free to use this repository either for their purpose or experiment with changes in the code.
How can we host a website on GitHub Pages?
We can host a website on github by making a repository with named : Username.github.io