Git change branch. Git checkout. git checkout new branch. git add new_file. git checkout hash.