how to apply an older patch in local GIT repository?

Git (revision control): Will i have to initialize other folders/directories which are in my master repository?

  • Hi all, Few days back i started to learn about git , so i m very beginner for git and i never used any kind of version control before it what exactly i want to do is that ----- want to use git for tracking my project local (offline) for this  i made my main folder/directory called "project" and by using $git init , i initialized it as a git repository now in project directory i made 3 sub directories or folder called design css images will i have to initialize other folders/directories which are in my master repository  ? any suggestion also for tracking my project local (offline) will be helpful for me Thanks Jamna

  • Answer:

    No, you won't need to initialize (i.e, doing a git init inside) the sub-directories of "project" (the directory in which you did git init). But you will need to add any files, inside "project" and its sub-directories, which you want to track using git add command. http://git-scm.com/book provides a very good introduction of the various features of git. Reading it would be quite helpful.

Kinshuk Sarabhai at Quora Visit the source

Was this solution helpful to you?

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.