
We can create a check the branches present in the git using git branch command if we provide a new name along with the git branch, it will create a new branch. After the edits or developments of a feature are completed, then one after testing the dev branch will be merged into the master branch. Now developers will do all the edits or features in the dev branch.

For example : People create dev branches from the Master Branch. The branch is nothing but an independent line of development. This is great when you want to create a feature in your application because you do not have to worry about breaking a working application since When you branch, your current repo (usually your main branch) goes untouched. MINGW64 ~/SampleRepo (master)Ĭommit c9979a285091d7a4f2a35382a071c84b98bdfaee (HEAD -> master)Ī branch is a mirror of your current repo. The outcome of the log, HEAD represents, to which repository user committed. We can see the commit history by using log command, this will tell us what branch we are in and the author, date, commit message. added two basic filesĢ files changed, 0 insertions(+), 0 deletions(-) Ĭommit the files to Local repository : Committing is nothing but adding our staged files into local repositoryĬommitting is important, and you should commit whenever you feel like you have completed a unit.Ĭommit command is used to commit the staged files, we can also set the message for the commit, messages could be your simple description of the changes, -m represents that following is a message git commit -m "added two basic files"Ĭommit outcome MINGW64 ~/SampleRepo (master) We can add all the untracked files into stage using.
SOURCETREE SVN HOW TO
How to remove a file from the stage git rm -cached abc.php You can differentiate the added and not added/untracked files git add abc.php MINGW64 ~/SampleRepo (master) We can add files to the stage using add command in the git. If you see the highlighted line in the output, then your repository got created successfully.Ĭreate two files inside the repository using the touch command touch abc.php How to re move a directory: rmdir directoryNameĬreate a folder called SampleRepo and move inside the folder for creating the git repositoryĬonvert the created folder into the git repository with the below command. It is important to learn command line/CMD commands in git, even though we may not use them along without modern work IDEs but they will be helpfulĬreate a new folder, mkdir folderToCreateĬreate any file and save it in the folder that we have created just before in the below step, I am using the vim to create a file. Page Object Model Folder Structure Basics of Git CMD : Verify the user email address that you had set git config -global user.email

Set the user email address to the git git config -global user.email " " Verify the user name that you had set git config -global user.name

Set the user name to the git git config -global user.name "karthiQ" Setting user details like user name and email is important for tracking purposes follow below commands to set details.īefore setting any values in git, you need to open git bash terminal, -global is nothing but the scope of the user details.
SOURCETREE SVN DOWNLOAD
Choose the to download based on your operating system.It just takes screenshots of your files when you save them, and then it compares the files for differences.

Git is an open-source program to keep track of changes in your files.
