Create Repository from existing folder without syncing present files #123589
Replies: 2 comments
-
Sure, Here's my guide on creating a repository from an existing folder without syncing present files: Creating a Repository from an Existing Folder Without Syncing Present FilesHey there! If you have a fairly large project you want to sync on GitHub without uploading all the initial files, follow these steps to achieve that: Step 1: Initialize a New Git RepositoryOpen your terminal and navigate to the folder of your project. Run the following command to initialize a new Git repository without staging any files: git init Step 2: Create a
|
Beta Was this translation helpful? Give feedback.
-
Hi everyone,
Hi,
I have a fairly large project I'd like to sync on GitHub so I can work from different physical locations.
I would like not to sync any of the initial files (apart from the Git ones), since the project is up to date on all my machines.
I want Git to check out modified file only from this point on, but it automatically checks out all the files from the parent folder (I don't want to use git ignore since I might modify these files later on), and if I "discard" from the desktop app at this point it will delete all the selected files.
Any ideas how I should proceed?
Beta Was this translation helpful? Give feedback.
All reactions