S
S
Stanislav Smirnov2020-05-10 18:28:01
git
Stanislav Smirnov, 2020-05-10 18:28:01

How to push a commit if the local repository is different from the remote one?

There is a repository infinity-geek/dotfiles , on the site I created a README.md file so that it would not be in my local repository. I just don't need him here. Option git pulldoes not fit

Answer the question

In order to leave comments, you need to log in

3 answer(s)
L
Lynn "Coffee Man", 2020-05-10
@Lynn

There is no way with such requests. You
will still have to drag the readme to the local repository

I
iBird Rose, 2020-05-10
@iiiBird

read about gitignore

A
arkashka0, 2020-05-10
@arkashka0

git pull --allow-unrelated-histories

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question