[Solved] How can I reset my default home directory in Git?
You created a git repo in your home directory. Just remove it and you should be fine: $ rm -rf /Users/ruxandravasilescu/.git/ 0 solved How can I reset my default home directory in Git?
You created a git repo in your home directory. Just remove it and you should be fine: $ rm -rf /Users/ruxandravasilescu/.git/ 0 solved How can I reset my default home directory in Git?
git-clean – Remove untracked files from the working tree Synopsis git clean [-d] [-f] [-i] [-n] [-q] [-e <pattern>] [-x | -X] [–] <path>… Description Cleans the working tree by recursively removing files that are not under version control, starting from the current directory. Normally, only files unknown to Git are removed, but if the … Read more
To rename a branch while pointed to any branch: git branch -m <oldname> <newname> To rename the current branch: git branch -m <newname> -m is short for –move. To push the local branch and reset the upstream branch: git push origin -u <newname> To delete the remote branch: git push origin –delete <oldname> To create … Read more
Executive Summary $ git push -d <remote_name> <branchname> $ git branch -d <branchname> Note: In most cases, <remote_name> will be origin. Delete Local Branch To delete the local branch use one of the following: $ git branch -d <branch_name> $ git branch -D <branch_name> The -d option is an alias for –delete, which only deletes … Read more