J
J
JohnxFFF2019-10-21 07:43:43
git
JohnxFFF, 2019-10-21 07:43:43

Am I correct to comic thread?

Good afternoon, I cloned the project, created a branch
I made changes in it, I committed it
Then I executed the command:
git push origin mybranch
In the commit graph, everything was added, the branch is marked as origin / mybranch
But the person who does the merge says that my commit does not exist, and he does not see it, in What could be the problem and what am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Decadal, 2019-10-21
@Decadal

Create branch: git checkout -b your_branch_name
After making changes, check that they are being tracked by git: git status should show something red (untracked files or modified files)
If there is something red, you are on the right track.
git add .- will mark all files in the current repository as prepared for a commit. In git status they will be green.
git commit -m "some commit message"- Now you've committed.
If you just write git push and your branch was not on the origin before, the console will display a message like "no such branch was found on the origin. To push to the origin, run the command ....(command)."
Copy the command that you are offered and execute.
After these actions, your commit with changes is guaranteed to be in your branch on origin

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question