Documentation
Welcome to the official GitNexus documentation. This hub is designed to help InternNexus students master version control and collaborative software development in a professional environment.
What is Git?
Git is a Distributed Version Control System. It tracks every change made to your code, allowing multiple developers to work on the same project simultaneously without overwriting each other's work.
Note: GitNexus uses standard Git protocols. If you know how to use GitHub, you already know how to use GitNexus.
Local Setup
First, identify yourself to the Git system on your local machine:
git config --global user.name "Your Name"
git config --global user.email "yourid@internnexus.com"
Essential Commands
Use these commands in your terminal or command prompt to manage your repositories.
Clone a Repository
git clone https://git.internnexus.com/username/repo-name.git
Staging and Committing
git add .
git commit -m "Describe your changes here"
Syncing with GitNexus
git pull origin main # Get latest updates
git push origin main # Upload your work
The GitNexus Workflow
To keep the codebase clean, follow these three steps for every task:
- Branch: Create a new branch for your task:
git checkout -b feature-task - Develop: Write your code and commit your changes locally.
- PR: Push your branch and open a Pull Request on the GitNexus web interface for review.