DevOps session 13: Automate git SETUP using bash scripting.

Create GitHub account:
1.Open GitHub site(https://github.com) in chrome and click on signup.
1. Create a Folder with your project (eg: GitDemo)
2. open command prompt and navigate to project folder created above.
3. Use git init command to initialize local repo.(all changes you are working will be saved in .git file)
4. First time when you want to get the GitHub code ,we have to use git clone command.
example : I want to get the fresh code on the new system. then I need to follow above steps and then I need to use git clone command.
Copy the https link provide from code repo. and then provide the below command in cmd.
syntax : git clone https://github.com/NAVEENINTEL/ruby-selenium.git
You can observe ,all the code from GitHub will be copied to your local system.
5. Now you can make updates to the code. All the changes will be available to your local repo. Your central repo will not be updated with latest code with out pushing the code.
Will continue....
Comments
Post a Comment