J
J
Jesse Pinkman2021-06-28 11:28:09
git
Jesse Pinkman, 2021-06-28 11:28:09

How to sync github repository in vscode?

Hey!
Let's say there is a repository that I cloned to my computer using the vscode extension. Committed the change for a while. Then it so happened that I had to transfer the files with the code to a USB flash drive and change it on another computer, which was without an Internet connection and therefore I could not set up a git there and make a clone. The problem is that I now need to push the code that I changed into git so that only those files that have been changed would be pushed. On the Internet, I found a command with a parameter -fthat cleared the repository and overwrote all files from scratch. But I only need to write down the changed files. I would be grateful for help!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vorfall, 2021-06-28
@jessepinkman010101

just clone the repository
then take your modified project and drag all the files to the folder with the rep (when it says that such files already exist, replace)
git will assume that you made changes locally and push it as a new commit

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question