I do a lot of experiments with the code in git and they often take time. During this time I cant push or pull any code since I can’t commit any of these experimental changes. I was wondering if I can make a duplicate in my local and detach or from git and restore my other folder to main so that I can pull and push code easily and experiment on my other code.
I tried to copy the folder as is and pasted it in a different location but it’s still showing my branch. I didn’t expect this. I’m a complete git noob so I’ve no idea what to do.
Abdulla Khan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.