KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
If I clone a git repository like this git clone <some-repository> git creates a directory, named as the 'humanish' part of the source repository. (according to the man page). Now I want to create a bash script that clones a repository, 'cds' into the newly created directory, and does some stuff. Is there an easy way for the bash script to know the name of the created directory, without explicitly providing a directory to the 'git clone' command?
Tags (comma-separated)
Save Edits
Cancel