Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-6012

More help in commands to start using git

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: