This a sample class project that illustrates how to use git
- Initialize an empty git repository using the following command
git init
- Check git status using the following command
git status
- Add untracked files to git repository using the following command
git add .
- Commit changes to a git repository using the following command
git commit -m "Enter the commit message"
- Check your commit history
git log
-
Create a repository on Github
-
Link remote GitHub repository to your local repository using the following command
git remote add origin <remote-url>
- Push to GitHub
git push origin <branch-name>
- Refresh your page on GitHub to see the changes