Adding Git Log Command

pull/782/head
Prashant Bhapkar 3 years ago committed by GitHub
parent b07e06e1a4
commit 59bd651259
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -128,6 +128,14 @@ Let's say you have a folder locally with some code project and you want to start
This commits all of your files, adding the message "first commit". For future commit messages you will want to be more descriptive in your description to convey what type of change you've made.
1. **Check Logs**. The git log command displays all of the commits in a repositorys history. Type the following command to check the logs:
```bash
git log
```
By default, the command displays each commits: Secure Hash Algorithm (SHA), author, date, commit message.
1. **Connect your local Git repo with GitHub**. A Git repo is good on your machine but at some point you want to have backup of your files somewhere and also invite other people to work with you on your repo. One such great place to do so is GitHub. Remember we've already created a repo on GitHub so the only thing we need to do is to connect our local Git repo with GitHub. The command `git remote add` will do just that. Type the following command:
> Note, before you type the command go to your GitHub repo page to find the repository URL. You will use it in the below command. Replace ```https://github.com/username/repository_name.git``` with your GitHub URL.

Loading…
Cancel
Save