- What is a repository?
A Git repository is a central location used to store and manage code and other digital assets using the Git version control system. It allows multiple developers to collaborate on a project and keeps track of changes made to the code over time.
- What is the Git command to make a copy of a repo to your laptop?
git clone https://github.com/M24SOM/git-introduction.git
- What is the Git command to send your code to Github?
- What does the -m in a Git commit command mean or do?
The "-m" option in a Git commit command is used to specify a commit message. A commit message is a brief description of the changes that were made in the commit.
- What is the Git command for making a commit?
git commit -m "commit message"
- What is the Git command to put your files in the staging area?
- What does origin stand for when pushing you code?
In Git, "origin" is a shorthand name for the remote repository that the local repository was originally cloned from. When you clone a repository, Git automatically creates a remote named "origin" that points to the original repository.