G
G
goshanoob2020-11-30 17:51:53
git
goshanoob, 2020-11-30 17:51:53

How to revert project files to the same folder in Git?

I was working on a project and then I renamed the cleanUp folder to CleanUp. After uploading to the repository, I saw on github that the contents of the folder were distributed between the cleanUp and CleanUp folders on the server, although locally I don’t have a cleanUp folder. How to move all documents to CleanUp and what was my mistake?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Ku kuruza, 2020-11-30
@goshanoob

git mv -f cleanUp CleanUp
git commit -m 'Перенос файлов в CleanUp'
git push

A
Alexander, 2016-11-05
Reytarovsky @Antonchik

For append, you can do this:

massiv=['1','2','3','4']
massiv+=['5']

and for insert like this:
massiv=['1','2','3','4']
massiv=massiv[0:2]+['5']+massiv[2:len(massiv)]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question