Git Workflow
How to submit your code via Git
All code submissions in NStrim are done through Git. This guide walks you through the process of setting up your repository and submitting your work.
Step 1: Create Your Repository
From your dashboard, go to the Tools & Deployment tab and find the Repositories section.
- Click the "New Repository" button
- Select a framework template from the dropdown (e.g., Laravel, React, Vue.js)
- Enter a repository name (lowercase, no spaces — e.g.,
module-a) - Enter a subdomain for your deployment URL
- Click "Create Repository"
The repository is created automatically from the selected template. Your deployment mapping is also set up automatically — no extra steps needed.
Step 2: Clone Your Repository
After creating the repository, you'll see the clone URL in your dashboard. Open your terminal and clone it:
git clone https://<git-server>/<username>/<repo-name>.git
For example:
git clone https://gitlab.demo.nstrim.app/ws01/module-a.git
Step 3: Work on Your Solution
Navigate into your cloned directory and start coding:
cd module-a
code .
Step 4: Commit and Push
Save your progress regularly by committing and pushing:
git add .
git commit -m "Add feature X"
git push origin main
Every push triggers an automatic deployment. Your work will be live within seconds.
Best Practices
- Commit frequently — Small, regular commits make it easier to track changes
- Write meaningful commit messages — Helps you understand your progress
- Test before pushing — Verify your code works locally first
- Check deployment status — Confirm the deployment succeeded after pushing
Common Git Commands
| Command | Description |
|---|---|
git status |
See which files have changed |
git add . |
Stage all changes for commit |
git commit -m "message" |
Commit staged changes |
git push |
Push commits to the server |
git pull |
Pull latest changes from server |
git log --oneline |
View commit history |