User Tools

Site Tools


start:git_siman

SIMAN git guide

Getting started

*username - your account name on GitHub

  1. Create a new fork of SIMAN in your git (https://github.com/dimonaks/siman)
  2. Create a new directory on your device for SIMAN local copy
     mkdir siman 
  3. Go to the directory
     cd siman 
  4. Create a new subdirectory in the current directory named .git, containing all the necessary repository files
     git init 
  5. Add a remote repository
     git remote add origin https://github.com/username/siman.git 
  6. Add access via ssh
     git remote set-url origin git@github.com:username/siman.git 
  7. Specify a new remote upstream repository that will be synced with the fork
     git remote add upstream https://github.com/dimonaks/siman.git 
  8. Verify the new upstream repository you've specified for your fork
     git remote -v 
  9. Download branches
     git fetch upstream 
  10. Merge it with local branches
     git merge upstream/master 

To update your local branch, use

 git pull 

Add changes to the project

  1. Use “git add .” or “git add – all” to apply all local changes
     git add . 
  2. Check the current state of your working directory
     git status 
  3. Save changes to the local repository ( Undo the last commit : git revert HEAD )
     git commit -m “MyCommit” 
  4. Merge repository changes with your fork on Git
     git merge upstream/master 
  5. 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

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki