B
B
beginer1232016-08-08 16:35:25
git
beginer123, 2016-08-08 16:35:25

Git Not Pushing?

For some reason, the git push command does not work
What I did
1. Created a local repo 2. Changed
something
3. Pushed the repo to github
git remote add origin repo_link
git push -u origin master
4. Created and switched to the second branch
5. Changed something
6 .I want to push both branches
, for this I write
git config --global push.default matching
7.I do
git push and
displays a message

Everything up-to-date

And nothing was pushed to github

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
aol-nnov, 2016-08-08
@aol-nnov

all this sheet lacks the most important thing - committing changes!
git commit!!1

D
Dmitry Zadovisvechkin, 2016-08-08
@Rubyn

You forgot to pull somewhere! This must be done in order to push again later. Are you working on a project alone?

M
Maxim Moseychuk, 2016-08-08
@fshp

4.Created and switched to the second branch
5.Changed something
6.I want to push both branches

You created a local branch, but didn't push it to the server.
The first branch push is `git push -u origin my_barnch`, just like master.
UPD :
Push without parameters sends only the current branch, the rest is not touched.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question