Getting Started with Git
Creating Your Identity
To add files, commit changes, and push files to your repository, you first need to identify as a user executing these changes. To do so, simply run:
This will set your account's default identity by specifying your email and name. Omit --global to set the identity only in this repository.Start Version Controlling
If you have a directory or project you'd like to keep track of with version control, we need to initialize it. To do so, navigate to the directory and use the git init
command. Here are the steps:
https
link with the git clone
command.
Navigate to the desired directory where you want the repo to be cloned and type:
Once you've cloned the repo, any changes you make have to be pushed to the Github repo. To do so, we need to stage and push some commits. We do that withgit add
, git commit
, and git push
.