Git and GitHub For Project
Git Commands
How to clone any repository for GitHub to my PC?
1) Go to your GitHub account.
2) Click to The To Right Menu of Your Profile Drop-down.
3) In the dropdown click the option Your Organization.
4) All Organization display.
5) Select Your Current Organization.
6) Then Your selected organization dashboard is open.
7) Click on the Repositiors option menu.
8) After Clicking all repositories display now.
9) Select To you Clone which repository.
10) After selecting your selected repo display now.
11) Click to the Green Color Code button drop-down.
12) After Clicking display all options you can clone using the Download zip file. My suggestion Copy HTTPS Url.
14) After Succesful copying the HTTPS URL. then create a folder to any diaractry.
15) then after creating a folder right click on the folder and select the option open with git bach.
17) In Git Bach Type Command git clone and paste the copy HTTPS URL and after press Enter button.
git clone REPO COPY URL(HTTPS)
18) Congrats on your repository cloning Process Successfully start.
1) Go to your GitHub account.
2) Click to The To Right Menu of Your Profile Drop-down.
3) In the dropdown click the option Your Organization.
4) All Organization display.
5) Select Your Current Organization.
6) Then Your selected organization dashboard is open.
7) Click on the Projects Option.
8) Dashboard is open Select the second option for left side menu Projects.
9) All projects are open.
10) Select your project.
11) Congrats on your sussesuly opening the project window.
12) Now start work on the project.
How to create a new branch using git ?
π git branch Enter_your_branch_name
How to Check how many branches exist in a project using git?
π git branch
How to checkout to different branches in git?
π git checkout Branch_Name
How to push code to created branch?
π git push origin your_branch_name
How to fetch changes repository update to your local PC?
π git pull
How to initialize the folder to git?
π git init
How to Add All files in git?
π git add .
How to commit changes in git?
π git commit -m "Your_Message"
How to delete the branch using git?
π git branch -d Branch_Name
How to change remote repository Url?
π git remote set-url Past_New_Repo_Https_Url
Comments
Post a Comment