this post was submitted on 22 Apr 2025
4 points (100.0% liked)

Git

3277 readers
1 users here now

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

Resources

Rules

  1. Follow programming.dev rules
  2. Be excellent to each other, no hostility towards users for any reason
  3. No spam of tools/companies/advertisements. It’s OK to post your own stuff part of the time, but the primary use of the community should not be self-promotion.

Git Logo by Jason Long is licensed under the Creative Commons Attribution 3.0 Unported License.

founded 2 years ago
MODERATORS
 

Hi, folks! I'm trying to send commits from origin to another branch:

git push -uf origin foo2

Then I gets it:

branch 'foo' set up to track 'origin/foo2'.

But when I'm trying to do this:

git push -uf origin origin/foo2

It writes me:

Everything up-to-date

And commits don't be sent.

Now I'm using 'foo' branch.

And the list of changes:

changed: scripts/file1.gd

changed: scripts/file2.gd

changed: scripts/file3.gd

Is still not empty. After I sends commits - nothing changes.

I don't know what do I do wrong. Can you help me? 🤷🏻‍♂️

top 2 comments
sorted by: hot top controversial new old
[–] tyler 2 points 1 month ago (1 children)

If foo is set to track origin/foo you don’t need to do anything except git push. But it sounds like you haven’t actually staged and committed your changes yet so you need to do that first. git add the files you want to commit and then git commit them with a message.

[–] [email protected] 1 points 1 month ago* (last edited 1 month ago)

I already have to do this.