Answers for "how to add a javascript file to html with type"

3

git reset to commit

# reset to specefic commit
git reset --hard <commit id>

# to go back one step 
git reset --hard HEAD~1

# note: use --soft to keep file changes
Posted by: Guest on March-05-2021
0

git reset to latest commit

git reset --hard HEAD~0
will go to latest commit.


git reset --hard HEAD~1
will go to last but one commit.

Note:  Be careful while running this command. it can't be irreversible
Posted by: Guest on June-29-2021
0

git reset branch

git fetch origin
git reset --hard origin/branch_name
Posted by: Guest on November-05-2020
0

reset to commit

# rollback to commit state
git revert --no-commit 0766c053..HEAD
git commit
Posted by: Guest on April-10-2020
0

git command change to previous comit

git reflog
git checkout HEAD@{...}
Posted by: Guest on December-08-2020
2

how to reference a javascript file in html

<script type="text/javascript" src="path/filename.js"></script>
Posted by: Guest on March-24-2021

Code answers related to "how to add a javascript file to html with type"

Browse Popular Code Answers by Language