# Updating Git Bash
With recent updates to git bash the repository link may no longer show in the terminal as it has in the past. Here is some code to return it as well as some other things you might want
1. You will need to locate your .bashrc file.
a. Typically you can just cd ~ in the terminal and at that location is the proper file ls -a to see it and pwd if needed to find the true folder path
b. Some PC's will allow you to type open .bashrc at this location and it will open your file some will not. It is hidden by default so you may have to unhide. But open to edit in a txt editor or vs code
2. After any updates to this file you MUST restart your terminal for the changes to take place
## Add the branch back
```
# Add repository branch to the prompt
PS1='\[\033[00;33m\]$(__git_ps1 " (%s)")\[\033[00m\]$ '
```
## Add the branch and a time stamp
```
# Add timestamp and repository branch to the prompt
PS1='\[\033[01;32m\]\u@\h \[\033[01;34m\]\w \[\033[01;31m\][$(date +"%T")] \[\033[00;33m\]$(__git_ps1 " (%s)")\[\033[00m\]$ '
```
## Add just a time stamp
```
# Add timestamp to the prompt
PS1='\[\033[01;32m\]\u@\h \[\033[01;34m\]\w \[\033[01;31m\][$(date +"%T")] \[\033[00m\]$ '
```
## Add default load location
- Add this to the top of the .bashrc file to have your terminal open to the same folder each time
```
cd ~/Documents/coding/
Edit after ~/ to be the folder you want it to go too
```
## Add some shortcut commands
- Don't want to type all the folders to get to the one you want to work on? Use alias
```
alias back='cd ~/Documents/coding/'
Edit the folder path to be what you want
```
- Next time you can just type back and it will take you to this folder