More help in commands to start using git

XMLWordPrintable

      We I create a project, there is a little help how to add code to the repository:
      (1) How to add code
      (2) How to start from scratch

      Usually the programmer has a code he want to add to the repository, and the commands to to that should be:

      go to your computer
      if you use linux start a terminal
      if you have windows go to start/programs/git/git bash

      Write this commands in gitbash (windows) or in bash(linux)

      #!python
      
      cd /path/to/your/project
      example: cd /c/xampp/htdocs/myproject  
      git init
      git remote add origin sshkey
      example: git remote add origin ssh://git@bitbucket.org/username/projname.git
      git status
      git add *
      git status
      git commit -m "This is the very first initial commit"
      git status
      git push origin master
      
      

      Go to bitbucket and check the code is in the repository

              Assignee:
              Unassigned
              Reporter:
              ignaciogutierrez
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: