How to commit to NobGit
Prepare Git
- Install Git on your computer.
- Set the name and email address you want on commits.
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
Clone a repository
Open the NobGit repository and use the clone panel to copy either the HTTPS or SSH clone URL.
git clone https://www.nobgit.com/{owner}/{repo}.git
cd {repo}
For HTTPS, use your NobGit username and an access token when Git asks for credentials. For SSH, add an SSH key to NobGit first.
Commit and push changes
- Edit or add files in the repository folder.
- Review the changed files.
- Stage the files you want to commit.
- Create the commit.
- Push the branch to NobGit.
git status
git add .
git commit -m "Describe your change"
git push origin main
Edit from NobGit
- Open the repository in NobGit.
- Click the file you want to change.
- Edit the file in NobGit.
- Write a clear commit message.
- Commit the change.
If your repository uses a different default branch, replace main with that branch name. If the push is rejected because the remote has newer commits, run git pull --rebase origin main, resolve any conflicts, and push again.