Y
Y
Yuriy2017-04-14 11:17:01
git
Yuriy, 2017-04-14 11:17:01

Git pull update local project?

I deleted files from the local project, I try to get them from the remote project,
git pull origin master
in response I get
Already up-to-date.
the files that I deleted in git status.
now only git clone?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Andrey Burov, 2017-04-14
@BuriK666

git checkout filename
https://git-scm.com/docs/git-checkout

I
Ivan Filatov, 2017-04-14
@NYMEZIDE

you are using GIT incorrectly. What is the purpose of your teams? Get updated code in a specific branch?
what does it mean to delete files from a local project? - it means you made a change to the project, deleting files.
you must now either Commit or Revert the changes.
In general, it is strange that you work directly in the wizard, you want to delete files.
Read Git-Flow
You can only read from the master! Get the master branch to make other branches from it - feature_, develop_ or fix_.
They are already available for you to change. Then you commit them to the remote repository.
Then you make a pull request.
Then - merge, conflict resolution, etc.
And only then git pull origin master.

L
lxfr, 2017-04-14
@lxfr

About the hospade
git reset --hard
git pull origin master
Have you been banned from Google?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question