![]() ![]() Remote: Total 213 (delta 0), reused 0 (delta 0), pack-reused 213 But we can clone in a specific directory by passing the path of the required directory as an option.Ĭloning an exisiting Git repository in the current working directory using git clone command. This command will clone the repository in the current working directory by default. To clone an exisiting Git repository we use the git clone command. We can check the current branch by running the git status command. git directory in the project folder git-project and also created a master branch. Initialized empty Git repository in /Users/yusufshakeel/Sites/git-project/.git/ More on branches in the later tutorial.Ĭreating a new project folder. git directory in the present working directory and will also create a master branch. We can either run this command inside the project folder or add the path of the project folder as an option like git init path/to/project folder. We use the git init command when we want to create a new repository (repo). This is common when a new developer is added to a project and she pulls the Git repository in her local machine. The second scenario is to clone an exisitng repository. This is common if we are starting a new project. The first scenario is to create a brand new Git repository from scratch. There are two ways we can setup a Git repository. ![]() In this tutorial we will learn to setup Git repository. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |