What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-08-29 07:53:01
git checkout -b
# git checkout regarding branches switch git checkout <branch_name> # will take you to that branch git checkout -b <new_branch> # will create a new branch based on the branch you are already in # if this branch already exists then you will ... Add solution -
Shell/Bash 2021-08-28 15:07:02
main vs master in git
The main branch has already replaced all new github repos as the main branch. You can read up on it here. There is no actual difference between main and master, it's just the name of the default branch. For you git push origin master just creates a new ... Add solution -
Shell/Bash 2021-08-28 05:01:02
git bring your changes to a new branch
git checkout -b <new-branch> // This will leave your current branch as it is, create and checkout a new branch and keep all your changes. You can then stage changes in files to commit with: git add <files> //and commit to your new branch with... Add solution -
Shell/Bash 2021-08-28 03:10:02
branching strategy in your company
Our test framework is separate repo from the application code repo. Automation framework has a smaller code base, and fewer people are involved. so we do not have a very complicated branching strategy We have master and develop branches(buffer branch) ... Add solution -
Shell/Bash 2021-08-27 16:16:02
Git change remote branch name
# Rename the local branch to the new name git branch -m <old_name> <new_name> # Delete the old branch on remote - where <remote> is, for example, origin git push <remote> --delete <old_name> # Or shorter way to delete remot... Add solution -
Shell/Bash 2021-08-26 23:09:02
upload react project to github
Make sure you have already created a repo in github. In "package.json" file of project add - "homepage": "https://username.github.io/reponame" Run Install - "yarn add gh-pages" In "package.json/scripts" ad... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5