0

I am relatively new to Git Bash. Given below is the script that I am trying to execute. I saved the given below 3 lines in a file sshExec and tried running it in Git Bash. The first two line ran as expected but 3rd line didn't run. There is no error or warning as well. So there was no directory change as I wished my script to do.

Why is it that "cd anyPath" is not working in script?

eval "$(ssh-agent)"
ssh-add C:\\Users\\xyz\\.ssh\\id_rsa
cd D:/Repositories/RELEASE_2017_BugFixing/deltagen_teamlogic
Saurav Sahu
  • 13,038
  • 6
  • 64
  • 79

1 Answers1

1

Both answers above are synthetically correct. Try verifying the path you are trying to access.

Alternatively, you can go to the project folder manually then right click and select git bash option. This will trigger bash terminal automatically; opening the intended directory.

e.doroskevic
  • 2,129
  • 18
  • 25