Centralized version Control System
Distributed Version Control System
- have git installed in your laptop
- create a folder and create the necessary java files(created a java project - UtilityProject using eclipse) - this acts as the working directory
- move into the java project folder (UtilityProject)
- create git local repository
- open git bash here
- run the command - git init
- this command will create a .git hidden folder inside UtilityProject folder
- move the files from working directory to the staging area
- run the command - git add .
- move files from staging area to local repository
- run the command - git commit -m "initial commit"
- next we create a remote repository(UtilityRepository) in out github account
- come back to the bit bash and set the remote url
- run the command - git remote add origin https://github.com/TeamLeadDemo/UtilityRepository.git
- push the code from local repository to the remote repository
- run the command - git push -u origin master
- have git installed in your laptop
- create a folder(DemoFolder) and create a file sample.doc in it , DemoFolder acts as the working directory
- move into the folder (DemoFolder)
- create git local repository
- open git bash here
- run the command - git init
- this command will create a .git hidden folder inside DemoFolder folder
- move the files from working directory to the staging area
- run the command - git add .
- move files from staging area to local repository
- run the command - git commit -m "initial commit"
- next we create a remote repository (DemoRepository) in our github account
- come back to the bit bash and set the remote url
- run the command - git remote add origin https://github.com/TeamLeadDemo/DemoRepository.git
- push the code from local repository to the remote repository
- run the command - git push -u origin master
git status
git config --list git config --global user.name "TeamLeadDemo" git config --global user.email "[email protected]" git config --list
git branch git branch -a git branch requirement1 git checkout requirement1 git branch git push --set-upstream origin requirement1
github pull request github issues