

#Git powershell plus#
(first digit with + plus letter represents new files count added to the folder, second digit with ~ tilda character says this much of files are modified, and the last digit with - minus sign indicate deleted files count), Because I have added a single file it is showing +1 as a count. Write-OutPut "# vCloud-lab -Test Readme" > README.mdĪs soon as I generate a new file, prompt color changes to Yellow with +1, means there is new file added. I am creating first file call README.md (I will call it help file, it has all the information regarding to my projects, scripts, howto etc.) git folder, This folder contains actual version control with all the metadata regarding this local git repository, all the changes will be captured in the folders. Run below command to initialize the empty repository on the folder, Every time you run git command keep eye on the prompt head it says master with color green (means there are no changes inside directory everything is up to date nothing to stage), it is a master root branch also can be called first base branch

I will keep all the my codes/script on the same directory later, go the the directory to Git-Demo. New-Item -Path D:\Scripts -Name Git-Demo -ItemType Directory That helps to enhances the prompt and git operations. I have opened my PowerShell and using oh-my-posh module to add flavors to my PowerShell console. Grab/copy the git url location with HTTPS (Another protocol you can use is SSH), this will require later.
#Git powershell how to#
Once the repository is created This shows some very basic useful information regarding git command line introduction and how to quick setup. Provide repository a name and description (optional), I am keeping this repo public so anyone can view it and we can also choose who can modify it to it by assigning permissions later.
#Git powershell code#
Solved Visual studio Code make sure you configure your user.name and user.email in gitįirst to start I have created an account on, After login create a new repository (Basically it is a folder/directory contains all the project code/scripts files, including revision history) by pressing + button on the right top side of the screen, select New repository from the list. It also provides access control and several collaboration features, such as a pull requests, wikis and basic task management tools for every day projects. Git works very well for local repository. is a central Git repository hosting service, but it adds many of its own features. GitHub provides a centralized Web-based graphical interface. It helps me to collaborate my all scripting work among my colleagues and acts as good Central repository, it also helps to track changes in any files and can check in going point in time to review what changes where made when committing/pushing files. Git is a command line tool a distributed version-control system for tracking changes in source code during my DevOps scripting development. I have already downloaded and installed git application from. In this article I will perform the same tasks using complete git commands. I have already wrote few articles on how to use git earlier, but they where completely for Visual Studio Code, GUI with little exposure to command line.

Part 3 Git clone version control integration in Visual Studio Code Part 2 Git master branch source control integration in Visual Studio Code Part 1 Git version control integration in Visual Studio Code
