A collection of short solutions to daily tech problems, notes, some thoughts and explorations that might convert into a blog post someday. My take on Learn in public concept. title: "Git"
GitMerge dev branch into master Create one repository with folders of different projects Change commit message of the last commit Checkout pull requests locally Tags Log Merge dev branch into mastergit checkout master
Merge dev branch into master branch git merge --no-ff dev
git push origin master
git branch -d dev
Delete merged branch on remote host git push origin :dev
Create one repository with folders of different projectsCreate github repository with readme file
Clone it
git clone <repo_url>
Unzip cloned folder
Copy folder with project into this folder
From root folder add all files to git
git add .
Commit changes
git commit -m “message”
Push changes
git push origin master
To add another folder repeat from 4th step.
Change commit message of the last commitgit commit --amend -m "your new message"
Checkout pull requests locallygit fetch origin pull/ID/head:BRANCHNAME
where
ID - pull request's ID (#18) BRANCHNAME - a name of the branch git checkout BRANCHNAME
For there, you can run the code locally, make changes, then push the new branch up.
Docs
git tag
git tag -d <tag_name>
git tag <tag_name>
git push origin --tags
Docs
Nice Git Loggit log --graph --oneline --decorate