Additional Git Commands
Git Status
It is used for checking the status of git repository, i.e., if the files are committed or not, files in staging area or untracked file.
Syntax
$ git status
Git Log
It is used to track all the changes made in the repository, providing the information on contributors and their contributions.
Syntax
$ git log
.gitignore
You may use .gitignore if you want to hide any file when uploading online. Just simply create a .gitignore file, and write all the files names you want to ignore.
Git Merge
It is used to merge two repository, without losing the data. It merge the specified repository to the current repository.
Syntax
$ git merge <repo-name>
Git Checkout
It is used to rollback to previous version of the project which was committed anytime earlier. You can copy to hash-code from git log and use it to rollback.
Syntax
$ git checkout <hash-code>
To know more git commands refer this – Git cheat sheet
What Is a GIT Repository?
The repositories of Github act as essential places for storing the files with maintaining the versions of development. By using GitHub repositories developers can organize, monitor, and save their changes of code to their projects in remote environments. The files in the GitHub repository are imported from the repository into the local server of the user for further updations and modifications in the content of the file. In this article, we will go through a detailed understanding of the GitHub repository and its workflow.
Table of Content
- What Is Git?
- Features Of Git
- Version Control With Git
- Understanding The Working Tree In A Git Repository
- Overview Of Git Repository Operations
- Cloning And Synchronizing With Remote Repositories
- Git Push And Pull Commands
- Additional Git Commands
- Conclusion
- Git Repository – FAQs
Contact Us