How do I add Git version control (Bitbucket) to an existing source code folder?
问题 This question was migrated from Software Engineering Stack Exchange because it can be answered on Stack Overflow. Migrated 6 years ago . How can I add the contents of an existing folder to Git version control? The tutorial here covers the case of making a directory and then adding source contents to it. I have some source code in a folder that is path dependent and don't want to move it. So, how can I just go into my folder and make it a repository? 回答1: Final working solution using @Arrigo