NobGit Docs

How to commit to NobGit

Prepare Git

  1. Install Git on your computer.
  2. Set the name and email address you want on commits.
git config --global user.name "Your Name"
git config --global user.email "[email protected]"

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

  1. Edit or add files in the repository folder.
  2. Review the changed files.
  3. Stage the files you want to commit.
  4. Create the commit.
  5. Push the branch to NobGit.
git status
git add .
git commit -m "Describe your change"
git push origin main

Edit from NobGit

  1. Open the repository in NobGit.
  2. Click the file you want to change.
  3. Edit the file in NobGit.
  4. Write a clear commit message.
  5. 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.