start:git_siman
Table of Contents
SIMAN git guide
Getting started
*username - your account name on GitHub
- Create a new fork of SIMAN in your git (https://github.com/dimonaks/siman)
- Create a new directory on your device for SIMAN local copy
mkdir siman
- Go to the directory
cd siman
- Create a new subdirectory in the current directory named .git, containing all the necessary repository files
git init
- Add a remote repository
git remote add origin https://github.com/username/siman.git
- Add access via ssh
git remote set-url origin git@github.com:username/siman.git
- Specify a new remote upstream repository that will be synced with the fork
git remote add upstream https://github.com/dimonaks/siman.git
- Verify the new upstream repository you've specified for your fork
git remote -v
- Download branches
git fetch upstream
- Merge it with local branches
git merge upstream/master
To update your local branch, use
git pull
Add changes to the project
- Use “git add .” or “git add – all” to apply all local changes
git add .
- Check the current state of your working directory
git status
- Save changes to the local repository ( Undo the last commit : git revert HEAD )
git commit -m “MyCommit”
- Merge repository changes with your fork on Git
git merge upstream/master
- Push changes to the remote repository
git push -u origin master
start/git_siman.txt · Last modified: 2025/01/31 14:43 by a.boev