Work with git
answer: for control program source and git is a Database for keep source and versioning
answer:
-
Repository is a storage for keep commits ,Branches, tags, files and ...
-
.gitignore/readme.md/LICENSE
answer:
-
- What does the project do and what is it made for?
-
2.How to use the project?
-
3.What should someone do if they want to help with the project?
answer:
- Used to take a complete sample of the project.
Question5: What command should be executed if we want to update the local repository with the remote repository?
answer:
- we sould use this command
git pull
answer:
- for transfer between branches
git checkout <branch-name>
lose changes and add new commit
git revert <commit>
keep changes and just remove commit
git reset <commit>
answer:
- add new commit and merge current changes with specific branch
git merge --no-ff <branch-name1> <branch-name2>
sort-changes and Stick together.
git rebase
answer:
git log
answer:
git diff
git show
answer: for get release of after update or after stable project
git tag
answer:
-
- clone project to our local system
-
- create local-branch
-
- add changes
-
- commit changes
-
- checkout to dev or master
-
- merge local-branch with remote branch
-
- pull from remote branch
-
- fix conflicts
-
- push to remote branch
answer: for apply specific changes in project
with 2 below command:
git merge
git rebase
sajjad maneshi
@dwsclassdws-dev-004-git