{"id":472,"date":"2022-08-19T17:35:21","date_gmt":"2022-08-19T09:35:21","guid":{"rendered":"https:\/\/scutvk.cn\/?p=472"},"modified":"2022-08-19T17:35:21","modified_gmt":"2022-08-19T09:35:21","slug":"force-git-push-local-files-to-a-fork","status":"publish","type":"post","link":"https:\/\/scutvk.cn\/?p=472","title":{"rendered":"Force Git push local files to a Fork"},"content":{"rendered":"\n<p>Execute the following command locally (uncomment the #)<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git init # Create repository in local folder\ngit remote add origin git@github.com:vkgo\/TreeDecoder.git # Add remote repository source\ngit add *\ngit commit -m 'update'\ngit push -f --set-upstream origin master \n# \"-f\" means force push, because the source code of the fork is different from our local source code; \"master\" is the branch name.\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Execute the following com&hellip;<\/p>\n","protected":false},"author":1,"featured_media":429,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[2],"tags":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/scutvk.cn\/wp-content\/uploads\/2022\/06\/61a47db998b8d285.jpg","_links":{"self":[{"href":"https:\/\/scutvk.cn\/index.php?rest_route=\/wp\/v2\/posts\/472"}],"collection":[{"href":"https:\/\/scutvk.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/scutvk.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/scutvk.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/scutvk.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=472"}],"version-history":[{"count":1,"href":"https:\/\/scutvk.cn\/index.php?rest_route=\/wp\/v2\/posts\/472\/revisions"}],"predecessor-version":[{"id":475,"href":"https:\/\/scutvk.cn\/index.php?rest_route=\/wp\/v2\/posts\/472\/revisions\/475"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/scutvk.cn\/index.php?rest_route=\/wp\/v2\/media\/429"}],"wp:attachment":[{"href":"https:\/\/scutvk.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=472"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/scutvk.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=472"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/scutvk.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=472"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}