git init
- initialize local repositorytouch test.txt
- create a test.txt- Edited test.txt
touch .gitignore
- empty gitignore(This can avoid unwanted files)git add .
(Staged of all files in master)git commit
(Commit in master)git remote add origin url
(Remote repository for pushing local files)git push --set-upstream origin master
(Create a remote master branch and push the local files)git checkout -b feature
(Created a new branch called feature and switched to it)git merge master
(Merge files from master to feature)git push --upstream origin feature
- Played with "
git rm rf --cached test.txt
" in betweengit add .
- Created merge conflict by editing same line in test.txt from master and feature.
- Added both changes from vs code.
- Pushed master
- Merged master to feature.
- Pushed feature.
- Created README.md in remote repository.
git pull
to pull README.mdgit logs
(Check logs)git diff id1 id2
(Difference between two commits)git tag name
created a tag.mkdir code
Created a directory named code in feature- Added app.js in code folder
git push
pushed it remote servergit checkout master
Switched to mastergit pull
pulled updated README.mdgit merge feature
merged feature to master branchgit push
pushed master branch- Edited README.md locally
git status
git add .
Stage locally edited README.mdgit commit
git push
-
Notifications
You must be signed in to change notification settings - Fork 0
MutharasanE/Training_Assignment
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Packages 0
No packages published