What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-09-21 06:38:03
git clone specific commit
# make a new blank repository in the current directory git init # add a remote git remote add origin url://to/source/repository # fetch a commit (or branch or tag) of interest # Note: the full history up to this commit will be retrieved unless # ... Add solution -
Shell/Bash 2021-08-28 21:46:01
git remote remove origin fatal no such remote 'origin'
The above will only work if you've either cloned the repository or manually added a remote called origin. If "git remote -v" doesn't show you any remotes you can simply add a remote using: git remote add origin https://username@stash/scm/PROJE... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5