git stuck in detached head - cannot revert to previous file in branch | بلاگ

git stuck in detached head - cannot revert to previous file in branch

تعرفه تبلیغات در سایت

آخرین مطالب

امکانات وب

Vote count: 0

I committed a change to my script that completely broke it. I tried restoring to a previous commit in git using this command:

git checkout 2af6889905af99b78f7401cb17b718ba86240c2a aws_utils.sh

But now I'm stuck in a detached head:

git branch -a
* (HEAD detached at 2af6889)

How do I merge the functional file in the hash 2af6889 back into the main branch called origin/update_aws_delete_user_function?

asked 35 secs ago
bluethundr

...
نویسنده : استخدام کار بازدید : 2 تاريخ : سه شنبه 9 مرداد 1397 ساعت: 4:34