- SVN
- Mercurial
- Git
- Github
- Bitbucket
- Gitlab
- Google repositories
- Create with files (if you dont have a project dir)
- Create without files (u you have a local project dir)
-
repo
-
url
- https://github.com/nivukite/learngithub (share)
- https://github.com/nivukite/learngithub.git (point to a repo)
- git@github.com:nivukite/learngithub.git
-
braches [main]
main -> production -> develop main -> newfeature
Code | Issues | PR | Actions (CI/CD) | Project
Git GUI/ Git Bash
Commands
git --help
Make a local copy of your repo HTTPS -> everytime u need to enter the password
git clone https://github.com/nivukite/learngithub.git
git branch
git checkout <branch_name>
> Ex: git checkout main
git pull
Add files and make changes to code
git staus
git add . (all all changes [file change, new file]
git add <file_name>
> Ex: git add main.txt
git commit -m "Added new file prod.txt"
git push
Create a pull request [code merge]
- Create PR using github pltform
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/nivukite/gitwofiles.git
git push -u origin main
- Git fork
- Managing git merge confilcts
- Git stash
git stash
git stash list
git stash apply
- Fork this repo
- Create a new file rollno_name_gollege_year_dept.txt
- 42_nivu_cas_2_ece.txt
- Raise PR to the master repo