Struggling with git, cannot push to new remote repositoryHow to clone all remote branches in Git?How can I add an empty directory to a Git repository?Reset local repository branch to be just like remote repository HEADMove the most recent commit(s) to a new branch with GitHow do I check out a remote Git branch?How do I delete a Git branch both locally and remotely?Undo a Git merge that hasn't been pushed yetHow to change the URI (URL) for a remote Git repository?How do I push a new local branch to a remote Git repository and track it too?How to revert a Git repository to a previous commit
I'm in charge of equipment buying but no one's ever happy with what I choose. How to fix this?
Can a Gentile theist be saved?
Could solar power be utilized and substitute coal in the 19th century?
Teaching indefinite integrals that require special-casing
How can I raise concerns with a new DM about XP splitting?
Stereotypical names
How will losing mobility of one hand affect my career as a programmer?
How can a jailer prevent the Forge Cleric's Artisan's Blessing from being used?
What was required to accept "troll"?
Female=gender counterpart?
How to deal with or prevent idle in the test team?
Would it be legal for a US State to ban exports of a natural resource?
Giant Toughroad SLR 2 for 200 miles in two days, will it make it?
Can I rely on these GitHub repository files?
How can I successfully establish a nationwide combat training program for a large country?
How did Monica know how to operate Carol's "designer"?
Who must act to prevent Brexit on March 29th?
Should a half Jewish man be discouraged from marrying a Jewess?
Adding empty element to declared container without declaring type of element
Books on the History of math research at European universities
Is exact Kanji stroke length important?
What is the opposite of 'gravitas'?
Proof of Lemma: Every integer can be written as a product of primes
No idea how to draw this using tikz
Struggling with git, cannot push to new remote repository
How to clone all remote branches in Git?How can I add an empty directory to a Git repository?Reset local repository branch to be just like remote repository HEADMove the most recent commit(s) to a new branch with GitHow do I check out a remote Git branch?How do I delete a Git branch both locally and remotely?Undo a Git merge that hasn't been pushed yetHow to change the URI (URL) for a remote Git repository?How do I push a new local branch to a remote Git repository and track it too?How to revert a Git repository to a previous commit
Ok, hopefully this should be easy for you. I'm new to git, BitBucket and somewhat new to version control too, I'm going to be missing something obvious to you.
So here's what I've done: I've installed git on my machine and set my globals. Set up a new repo on BitBucket. Then:
$ git clone https://[me]@bitbucket.org/[me]/[my_project].git
I create a new file (index.html) locally, add and commit:
$ git add index.html
$ git commit -m "Initial commit."
[master (root-commit) 01d4120] Initial commit.
1 files changed, 164 insertions(+), 0 deletions(-)
create mode 100755 index.html
Committed successfully.
$ git push
Password:
Everything up-to-date
I enter my password aaaaaand... Everything up-to-date
... It doesn't push. I just want to push straight to the remote trunk from my local trunk.
I'm sorry if this is really obvious but I'm so new to everything I can't seem to find any info, I was just working through the 'BitBucket 101' steps. Cheers.
git version-control
add a comment |
Ok, hopefully this should be easy for you. I'm new to git, BitBucket and somewhat new to version control too, I'm going to be missing something obvious to you.
So here's what I've done: I've installed git on my machine and set my globals. Set up a new repo on BitBucket. Then:
$ git clone https://[me]@bitbucket.org/[me]/[my_project].git
I create a new file (index.html) locally, add and commit:
$ git add index.html
$ git commit -m "Initial commit."
[master (root-commit) 01d4120] Initial commit.
1 files changed, 164 insertions(+), 0 deletions(-)
create mode 100755 index.html
Committed successfully.
$ git push
Password:
Everything up-to-date
I enter my password aaaaaand... Everything up-to-date
... It doesn't push. I just want to push straight to the remote trunk from my local trunk.
I'm sorry if this is really obvious but I'm so new to everything I can't seem to find any info, I was just working through the 'BitBucket 101' steps. Cheers.
git version-control
Please provide system log from creating a new file to "Everything is up to date". Did you check your bitbucket repo from the site? There is no index.html file?
– Alexey Morozov
Oct 26 '11 at 20:25
Updated question with command line dumps so that you can see what's going on.
– igneosaur
Oct 26 '11 at 20:36
add a comment |
Ok, hopefully this should be easy for you. I'm new to git, BitBucket and somewhat new to version control too, I'm going to be missing something obvious to you.
So here's what I've done: I've installed git on my machine and set my globals. Set up a new repo on BitBucket. Then:
$ git clone https://[me]@bitbucket.org/[me]/[my_project].git
I create a new file (index.html) locally, add and commit:
$ git add index.html
$ git commit -m "Initial commit."
[master (root-commit) 01d4120] Initial commit.
1 files changed, 164 insertions(+), 0 deletions(-)
create mode 100755 index.html
Committed successfully.
$ git push
Password:
Everything up-to-date
I enter my password aaaaaand... Everything up-to-date
... It doesn't push. I just want to push straight to the remote trunk from my local trunk.
I'm sorry if this is really obvious but I'm so new to everything I can't seem to find any info, I was just working through the 'BitBucket 101' steps. Cheers.
git version-control
Ok, hopefully this should be easy for you. I'm new to git, BitBucket and somewhat new to version control too, I'm going to be missing something obvious to you.
So here's what I've done: I've installed git on my machine and set my globals. Set up a new repo on BitBucket. Then:
$ git clone https://[me]@bitbucket.org/[me]/[my_project].git
I create a new file (index.html) locally, add and commit:
$ git add index.html
$ git commit -m "Initial commit."
[master (root-commit) 01d4120] Initial commit.
1 files changed, 164 insertions(+), 0 deletions(-)
create mode 100755 index.html
Committed successfully.
$ git push
Password:
Everything up-to-date
I enter my password aaaaaand... Everything up-to-date
... It doesn't push. I just want to push straight to the remote trunk from my local trunk.
I'm sorry if this is really obvious but I'm so new to everything I can't seem to find any info, I was just working through the 'BitBucket 101' steps. Cheers.
git version-control
git version-control
edited Mar 8 at 8:22
igneosaur
asked Oct 26 '11 at 20:18
igneosaurigneosaur
2,19822237
2,19822237
Please provide system log from creating a new file to "Everything is up to date". Did you check your bitbucket repo from the site? There is no index.html file?
– Alexey Morozov
Oct 26 '11 at 20:25
Updated question with command line dumps so that you can see what's going on.
– igneosaur
Oct 26 '11 at 20:36
add a comment |
Please provide system log from creating a new file to "Everything is up to date". Did you check your bitbucket repo from the site? There is no index.html file?
– Alexey Morozov
Oct 26 '11 at 20:25
Updated question with command line dumps so that you can see what's going on.
– igneosaur
Oct 26 '11 at 20:36
Please provide system log from creating a new file to "Everything is up to date". Did you check your bitbucket repo from the site? There is no index.html file?
– Alexey Morozov
Oct 26 '11 at 20:25
Please provide system log from creating a new file to "Everything is up to date". Did you check your bitbucket repo from the site? There is no index.html file?
– Alexey Morozov
Oct 26 '11 at 20:25
Updated question with command line dumps so that you can see what's going on.
– igneosaur
Oct 26 '11 at 20:36
Updated question with command line dumps so that you can see what's going on.
– igneosaur
Oct 26 '11 at 20:36
add a comment |
2 Answers
2
active
oldest
votes
You will have to do:
git push origin master
Change origin if you have a different remote.
Change master if you have different branch.
That's it! Thank you mate, the guide did not mention this.
– igneosaur
Oct 26 '11 at 23:11
add a comment |
I am not sure it is bitbucket.org or GIT's issue.
After you clone the project. In your local configuration, you have the origin setup to the remote. But no branch information yet. So you have to use '$ git push origin ' to do it once. After that. you can simply use '$ git push'.
'$git push -v ' would be helpful to find issue. It prints out detail information.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f7908381%2fstruggling-with-git-cannot-push-to-new-remote-repository%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
You will have to do:
git push origin master
Change origin if you have a different remote.
Change master if you have different branch.
That's it! Thank you mate, the guide did not mention this.
– igneosaur
Oct 26 '11 at 23:11
add a comment |
You will have to do:
git push origin master
Change origin if you have a different remote.
Change master if you have different branch.
That's it! Thank you mate, the guide did not mention this.
– igneosaur
Oct 26 '11 at 23:11
add a comment |
You will have to do:
git push origin master
Change origin if you have a different remote.
Change master if you have different branch.
You will have to do:
git push origin master
Change origin if you have a different remote.
Change master if you have different branch.
answered Oct 26 '11 at 20:26
manojldsmanojlds
217k46380366
217k46380366
That's it! Thank you mate, the guide did not mention this.
– igneosaur
Oct 26 '11 at 23:11
add a comment |
That's it! Thank you mate, the guide did not mention this.
– igneosaur
Oct 26 '11 at 23:11
That's it! Thank you mate, the guide did not mention this.
– igneosaur
Oct 26 '11 at 23:11
That's it! Thank you mate, the guide did not mention this.
– igneosaur
Oct 26 '11 at 23:11
add a comment |
I am not sure it is bitbucket.org or GIT's issue.
After you clone the project. In your local configuration, you have the origin setup to the remote. But no branch information yet. So you have to use '$ git push origin ' to do it once. After that. you can simply use '$ git push'.
'$git push -v ' would be helpful to find issue. It prints out detail information.
add a comment |
I am not sure it is bitbucket.org or GIT's issue.
After you clone the project. In your local configuration, you have the origin setup to the remote. But no branch information yet. So you have to use '$ git push origin ' to do it once. After that. you can simply use '$ git push'.
'$git push -v ' would be helpful to find issue. It prints out detail information.
add a comment |
I am not sure it is bitbucket.org or GIT's issue.
After you clone the project. In your local configuration, you have the origin setup to the remote. But no branch information yet. So you have to use '$ git push origin ' to do it once. After that. you can simply use '$ git push'.
'$git push -v ' would be helpful to find issue. It prints out detail information.
I am not sure it is bitbucket.org or GIT's issue.
After you clone the project. In your local configuration, you have the origin setup to the remote. But no branch information yet. So you have to use '$ git push origin ' to do it once. After that. you can simply use '$ git push'.
'$git push -v ' would be helpful to find issue. It prints out detail information.
answered Oct 26 '11 at 22:00
Enze ChiEnze Chi
1,063917
1,063917
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f7908381%2fstruggling-with-git-cannot-push-to-new-remote-repository%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Please provide system log from creating a new file to "Everything is up to date". Did you check your bitbucket repo from the site? There is no index.html file?
– Alexey Morozov
Oct 26 '11 at 20:25
Updated question with command line dumps so that you can see what's going on.
– igneosaur
Oct 26 '11 at 20:36