Note that there are some explanatory texts on larger screens.

plurals
  1. POPush to Bitbucket repo silently fails and nothing changes
    primarykey
    data
    text
    <p>In the past I've used svn and cvs, but never BitBucket or Git. I just got a BitBucket account with an empty project associated. </p> <p>I read <a href="http://confluence.atlassian.com/display/BITBUCKET/Using+your+bitbucket+Repository" rel="nofollow">Getting Started with Bitbucket</a> and on my BitBucket page that I am supposed to do the following:</p> <pre><code>git clone https://bitbucket.org/REST_OF_URL/... </code></pre> <p>I use the URL provided by Git; it successfully accepts my password without any trouble. It does, however print the following:</p> <blockquote> <p>warning: You appear to have cloned an empty repository.</p> </blockquote> <p>This made sense to me, because I just signed up for BitBucket.</p> <p>This makes a directory called <code>myproject</code>. I then copied a file to that directory and added it to the repository:</p> <pre><code>cd myproject echo 'Hello Git!' &gt; hello.txt git add hello.txt </code></pre> <p>I checked the status:</p> <pre><code>git status </code></pre> <p>and saw that hello.txt was recognized as a new file.</p> <p>I then tried to push the file to the server:</p> <pre><code>git push https://bitbucket.org/REST_OF_URL/... </code></pre> <p>again, I typed in my password and it didn't complain. It reads:</p> <blockquote> <p>Everything up-to-date</p> </blockquote> <p>But the file has <em>not</em> shown up in my online Git project. I also noticed there is a <code>git commit</code> command. I tried this as well:</p> <pre><code>git commit -m "Initial project set up" </code></pre> <p>The output reads:</p> <blockquote> <p>Your name and email address were configured automatically based on your username and hostname. Please check that they are accurate.</p> </blockquote> <p>Since the file still hasn't shown up in my directory, I feel like I must have made a <em>local</em> commit on my own machine. Can anyone help me by telling me</p> <ul> <li>What I'm missing to set up a simple project with Git</li> <li>Where I've committed these files on my local machine (I'm hard up for disk space and don't want any clutter)</li> </ul> <p>As another user experienced from <a href="http://confluence.atlassian.com/display/BITBUCKET/Sharing+Code+in+Bitbucket" rel="nofollow">the Git BitBucket manual</a> it transfers <em>only</em> when you push with</p> <pre><code>git push origin master </code></pre> <p>but does <em>not</em> work when you push with</p> <pre><code>git push </code></pre> <p>This resolves my issue, but I still do not know why this happens.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload