{"id":107,"date":"2014-05-20T01:40:39","date_gmt":"2014-05-20T01:40:39","guid":{"rendered":"http:\/\/vkrastev1blog.com\/?p=107"},"modified":"2014-05-20T01:43:24","modified_gmt":"2014-05-20T01:43:24","slug":"important-git-commands","status":"publish","type":"post","link":"https:\/\/vkrastev1blog.com\/2014\/05\/20\/important-git-commands\/","title":{"rendered":"Git-\u0438\u0439\u043d \u0447\u0443\u0445\u0430\u043b \u0442\u0443\u0448\u0430\u0430\u043b\u0443\u0443\u0434 \u0431\u043e\u043b\u043e\u043d \u0437\u0430\u0430\u0432\u0430\u0440"},"content":{"rendered":"<p>Git \u043a\u043e\u043c\u0430\u043d\u0434\u044b\u043d \u0442\u0443\u0441\u043b\u0430\u043c\u0436\u0438\u0439\u0433 \u0445\u044d\u0440\u0445\u044d\u043d \u0430\u0432\u0430\u0445 \u0432\u044d<\/p>\n<p><em>git \u0442\u0443\u0441\u043b\u0430\u043c\u0436<\/em> \u041e\u0417\u042b\u04250\u0417 \u041e\u0417\u042b\u04251\u0417<\/p>\n<p>\u0416\u0438\u0448\u044d\u044d \u043d\u044c: git help git<\/p>\n<p>\u042d\u043d\u044d \u043d\u044c \u0445\u04e9\u0442\u0447\u0438\u0439\u0433 \u0430\u0436\u0438\u043b\u043b\u0443\u0443\u043b\u0436, HTML \u0445\u044d\u043b \u0434\u044d\u044d\u0440 \u0442\u0443\u0441\u043b\u0430\u043c\u0436 \u04af\u0437\u04af\u04af\u043b\u0434\u044d\u0433.<\/p>\n<p>\u041e\u0440\u043e\u043d \u043d\u0443\u0442\u0433\u0438\u0439\u043d \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u044b\u0433 \u0442\u043e\u0445\u0438\u0440\u0443\u0443\u043b\u0430\u0445, \u0430\u043d\u0445\u043d\u044b \u0442\u04af\u043b\u0445\u044d\u043b\u0442 \u0445\u0438\u0439\u0445:<\/p>\n<pre class=\" language-bash\"><code class=\" language-bash\">cd my_project\r\ngit init\r\ngit add <span class=\"token operator\">*<\/span>\r\ngit commit <span class=\"token operator\">-<\/span>m <span class=\"token string\">\"My initial commit message\"<\/span>\r\ngit remote add origin git@example<span class=\"token punctuation\">.<\/span>com<span class=\"token punctuation\">:<\/span>my_project<span class=\"token punctuation\">.<\/span>git\r\ngit push <span class=\"token operator\">-<\/span>u origin master<\/code><\/pre>\n<p>\u0422\u043e\u043e\u0446\u043e\u043e \u0445\u0438\u0439\u0445 \u0430\u0433\u0443\u0443\u043b\u0430\u0445<\/p>\n<pre><code>git clone git:\/\/github.com\/schacon\/grit.git<\/code><\/pre>\n<p>\u041e\u0440\u043e\u043d \u043d\u0443\u0442\u0433\u0438\u0439\u043d \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0442 \u04e9\u04e9\u0440\u0447\u043b\u04e9\u043b\u0442 \u043e\u0440\u0443\u0443\u043b\u0430\u0445\u044b\u043d \u0442\u0443\u043b\u0434 \u04af\u0439\u043b\u0434\u044d\u0445\u044d\u044d\u0441 \u0438\u043b\u04af\u04af \u043d\u044d\u043c\u044d\u0445 \u0445\u044d\u0440\u044d\u0433\u0442\u044d\u0439. \u0425\u044d\u0440\u044d\u0432 \u0442\u0430 \u043e\u0440\u043e\u043d \u043d\u0443\u0442\u0433\u0438\u0439\u043d \u0441\u0430\u043b\u0431\u0430\u0440\/\u04e9\u04e9\u0440\u0447\u043b\u04e9\u043b\u0442\u04af\u04af\u0434\u0438\u0439\u0433 \u0430\u043b\u0441\u044b\u043d \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440 \u0440\u0443\u0443 \u0442\u04af\u043b\u0445\u044d\u0445\u0438\u0439\u0433 \u0445\u04af\u0441\u0432\u044d\u043b \u0434\u043e\u043e\u0440\u0445 push \u043a\u043e\u043c\u0430\u043d\u0434\u044b\u0433 \u0445\u0438\u0439\u043d\u044d \u04af\u04af.<\/p>\n<pre>git add --all\r\n\r\ngit commit --all\r\n\r\ngit push\r\n<\/pre>\n<p>Repository \u043a\u043e\u043c\u0430\u043d\u0434\u044b\u0433 \u0434\u0430\u0440\u043d\u0430 \u0443\u0443<\/p>\n<pre><code>git push &lt;remote&gt; &lt;local branch name&gt;:&lt;remote branch to push into&gt;<\/code>\r\ngit push [--all | --mirror | --tags] [--follow-tags] [-n | --dry-run] [--receive-pack=]\r\n           [--repo=] [-f | --force] [--prune] [-v | --verbose] [-u | --set-upstream]\r\n           [--force-with-lease[=[:]]]\r\n           [--no-verify] [ [\u2026]]\r\n<\/pre>\n<p>\u0414\u0430\u0440\u0430\u0430\u0445 \u043b\u0438\u043d\u043a\u04af\u04af\u0434\u044d\u044d\u0441 \u0431\u0443\u0441\u0430\u0434 \u043a\u043e\u043c\u0430\u043d\u0434\u0443\u0443\u0434\u044b\u0433 \u043e\u043b\u043e\u0445 \u0431\u043e\u043b\u043e\u043c\u0436\u0442\u043e\u0439.<\/p>\n<p>\u04e8\u0434\u04e9\u0440 \u0431\u04af\u0440 20 \u0442\u0443\u0448\u0430\u0430\u043b \u0431\u04af\u0445\u0438\u0439 Git<\/p>\n<p><a href=\"https:\/\/www.kernel.org\/pub\/software\/scm\/git\/docs\/everyday.html\" rel=\"nofollow\">https:\/\/www.kernel.org\/pub\/software\/scm\/git\/docs\/everyday.html<\/a><\/p>\n<p>\u0421\u0430\u0439\u043d Git \u0445\u0438\u0447\u044d\u044d\u043b\u04af\u04af\u0434<\/p>\n<p>\u0425\u0430\u043c\u0433\u0438\u0439\u043d \u0442\u04af\u0440\u04af\u04af\u043d\u0434 \u0445\u0438\u0439\u0445 \u0437\u0430\u0430\u0432\u0430\u0440 1 &#8211; <a href=\"http:\/\/git-scm.com\/docs\/gittutorial\" rel=\"nofollow\">http:\/\/git-scm.com\/docs\/gittutorial<\/a><\/p>\n<p>\u0425\u0438\u0447\u044d\u044d\u043b \u0445\u0438\u0439\u0445\u044d\u0434 2 \u0441\u0435\u043a\u0443\u043d\u0434 \u04af\u043b\u0434\u0441\u044d\u043d &#8211; <a href=\"http:\/\/git-scm.com\/docs\/gittutorial-2.html\" rel=\"nofollow\">http:\/\/git-scm.com\/docs\/gittutorial-2.html<\/a><\/p>\n<p>\u041d\u044d\u043c\u044d\u043b\u0442 \u0437\u0430\u0430\u0432\u0430\u0440 &#8211; <a href=\"http:\/\/www.vogella.com\/tutorials\/Git\/article.html#firstgit_repostatus\" rel=\"nofollow\">http:\/\/www.vogella.com\/tutorials\/Git\/article.html#firstgit_repostatus<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Git-\u0434 \u0442\u0443\u0441\u043b\u0430\u0445 Git \u043a\u043e\u043c\u0430\u043d\u0434\u044b\u0433 \u0445\u044d\u0440\u0445\u044d\u043d \u0430\u0448\u0438\u0433\u043b\u0430\u0445 \u0432\u044d \u041e\u0417\u042b\u04250\u0417 \u041e\u0417\u042b\u04251\u0417 \u0416\u0438\u0448\u044d\u044d \u043d\u044c: git help git \u042d\u043d \u043d\u0435 \u0433\u0443\u0442\u0447\u0438\u0439 \u0433\u0435\u043b, HTML \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u0439 \u0434\u043b\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435 \u0434\u0435\u0440\u0436\u0430\u0439. \u041b\u043e\u043a\u0430\u043b \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u044b\u0433 \u0442\u043e\u0445\u0438\u0440\u0443\u0443\u043b\u0430\u0430\u0434 \u044d\u0445\u043b\u044d\u044d\u0434 \u0442\u043e\u0445\u0438\u0440\u0443\u0443\u043b\u043d\u0430 \u0443\u0443: cd my_project git init git add * git commit -m &#8220;My first commit message&#8221; git remote add origin git@example.com:my_project.git git push -u origin master [&hellip;]<\/p>\n","protected":false},"author":65283547,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_wpcom_ai_launchpad_first_post":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"Important Git commands and tutorials","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1017],"tags":[319,209196,29946263,32859840,81652472,19181762],"class_list":["post-107","post","type-post","status-publish","format-standard","hentry","category-java","tag-319","tag-git","tag-git-"],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4CoHV-1J","jetpack-related-posts":[{"id":224,"url":"https:\/\/vkrastev1blog.com\/2022\/06\/01\/eclipse-problem-by-changing-git-password\/","url_meta":{"origin":107,"position":0},"title":"GIT \u043d\u0443\u0443\u0446 \u04af\u0433\u0438\u0439\u0433 \u04e9\u04e9\u0440\u0447\u043b\u04e9\u0445 \u0437\u0430\u043c\u0430\u0430\u0440 Eclipse-\u0438\u0439\u043d \u0430\u0441\u0443\u0443\u0434\u0430\u043b","author":"vkrastev2014","date":"01.06.2022","format":false,"excerpt":"I have had a problem by changing the GIT password in Eclipse. Eclipse could not change the password in the secure storage and I couldn't use GIT anymore. You schould do following: Eclipse go to Preferences -> General -> Security -> Secure storage and in Contents tab delete \"Default Secure\u2026","rel":"","context":"In &quot;Java&quot;","block_context":{"text":"Java","link":"https:\/\/vkrastev1blog.com\/category\/java\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":21,"url":"https:\/\/vkrastev1blog.com\/2014\/05\/09\/how-to-install-testdisk-on-ubuntu-and-to-add-universe-repository\/","url_meta":{"origin":107,"position":1},"title":"Ubuntu \u0434\u044d\u044d\u0440 testdisk \u0445\u044d\u0440\u0445\u044d\u043d \u0441\u0443\u0443\u043b\u0433\u0430\u0445, \u043e\u0440\u0447\u043b\u043e\u043d \u0435\u0440\u0442\u04e9\u043d\u0446\u0438\u0439\u043d \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440 \u043d\u044d\u043c\u044d\u0445 \u0442\u0430\u043b\u0430\u0430\u0440","author":"vkrastev2014","date":"09.05.2014","format":false,"excerpt":"Execute the command in console in Ubuntu. The commands are made for \u00a0Ubuntu 12.04 LTS (Precise Pangolin). For your Ubuntu Version replace \"precise\" in these commands with your Ubuntu Version name: sudo add-apt-repository \"deb http:\/\/us.archive.ubuntu.com\/ubuntu precise universe miltiverse\" sudo add-apt-repository \"deb http:\/\/us.archive.ubuntu.com\/ubuntu precise-updates universe miltiverse\" sudo apt-get update sudo apt-get\u2026","rel":"","context":"In &quot;\u0411\u0443\u0441\u0430\u0434&quot;","block_context":{"text":"\u0411\u0443\u0441\u0430\u0434","link":"https:\/\/vkrastev1blog.com\/category\/%d0%b1%d1%83%d1%81%d0%b0%d0%b4\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":19,"url":"https:\/\/vkrastev1blog.com\/2014\/05\/09\/how-to-install-the-newest-nvidia-driver-on-ubuntu\/","url_meta":{"origin":107,"position":2},"title":"Ubuntu \u0434\u044d\u044d\u0440 \u0445\u0430\u043c\u0433\u0438\u0439\u043d \u0441\u04af\u04af\u043b\u0438\u0439\u043d \u04af\u0435\u0438\u0439\u043d NVIDIA \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0438\u0439\u0433 \u0445\u044d\u0440\u0445\u044d\u043d \u0441\u0443\u0443\u043b\u0433\u0430\u0445 \u0442\u0430\u043b\u0430\u0430\u0440","author":"vkrastev2014","date":"09.05.2014","format":false,"excerpt":"Open console window and type following commands: -------------------------------------------------------------------------------------------------------------- sudo apt-add-repository ppa:ubuntu-x-swat sudo apt-get update sudo apt-get install nvidia-current --------------------------------------------------------------------------------------------------------------- And you have the newest Driver installed.","rel":"","context":"In &quot;\u0411\u0443\u0441\u0430\u0434&quot;","block_context":{"text":"\u0411\u0443\u0441\u0430\u0434","link":"https:\/\/vkrastev1blog.com\/category\/%d0%b1%d1%83%d1%81%d0%b0%d0%b4\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2,"url":"https:\/\/vkrastev1blog.com\/2014\/05\/09\/how-to-repair-bootloader-after-installing-ubuntu-on-preinstalled-windows-pc-als-second-operating-system\/","url_meta":{"origin":107,"position":3},"title":"\u0423\u0440\u044c\u0434\u0447\u0438\u043b\u0430\u043d \u0441\u0443\u0443\u043b\u0433\u0430\u0441\u0430\u043d Windows PC \u0434\u044d\u044d\u0440 Ubuntu-\u0433 \u0445\u043e\u0451\u0440 \u0434\u0430\u0445\u044c \u04af\u0439\u043b\u0434\u043b\u0438\u0439\u043d \u0441\u0438\u0441\u0442\u0435\u043c \u0431\u043e\u043b\u0433\u043e\u043d \u0441\u0443\u0443\u043b\u0433\u0430\u0441\u043d\u044b \u0434\u0430\u0440\u0430\u0430 Bootloader-\u0438\u0439\u0433 \u0445\u044d\u0440\u0445\u044d\u043d \u0437\u0430\u0441\u0430\u0445 \u0432\u044d","author":"vkrastev2014","date":"09.05.2014","format":false,"excerpt":"I used this many times as the bootloader gone corrupted after the install and it was only possible to start in Linux but not in Windows after the Linux install. So you should do following to get it right. Execute following commands in Linux: ------------------------------------------------------------------------------------- sudo add-apt-repository ppa:yannubuntu\/boot-repair sudo apt-get\u2026","rel":"","context":"In &quot;\u0411\u0443\u0441\u0430\u0434&quot;","block_context":{"text":"\u0411\u0443\u0441\u0430\u0434","link":"https:\/\/vkrastev1blog.com\/category\/%d0%b1%d1%83%d1%81%d0%b0%d0%b4\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":247,"url":"https:\/\/vkrastev1blog.com\/2024\/04\/11\/how-to-create-pdf-from-html-or-image-using-java-pdfbox-framework\/","url_meta":{"origin":107,"position":4},"title":"Java pdfbox framework \u0430\u0448\u0438\u0433\u043b\u0430\u043d HTML \u044d\u0441\u0432\u044d\u043b \u0437\u0443\u0440\u0433\u0430\u0430\u0441 \u0445\u044d\u0440\u0445\u044d\u043d PDF \u04af\u04af\u0441\u0433\u044d\u0445 \u0432\u044d","author":"vkrastev2014","date":"11.04.2024","format":false,"excerpt":"Following example code here: In pom.xml insert or get the jar files and add them to the java project if you don't use maven <repositories> <repository> <id>jitpack.io<\/id> <url>https:\/\/jitpack.io<\/url> <\/repository> <\/repositories> <!-- https:\/\/mvnrepository.com\/artifact\/org.apache.pdfbox\/pdfbox --> <dependency> <groupId>org.apache.pdfbox<\/groupId> <artifactId>pdfbox<\/artifactId> <version>3.0.2<\/version> <\/dependency> <!-- https:\/\/mvnrepository.com\/artifact\/com.github.hkirk\/java-html2image --> <dependency> <groupId>com.github.hkirk<\/groupId> <artifactId>java-html2image<\/artifactId> <version>0.9<\/version> <\/dependency> and Java code here\u2026","rel":"","context":"In &quot;Java&quot;","block_context":{"text":"Java","link":"https:\/\/vkrastev1blog.com\/category\/java\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":55,"url":"https:\/\/vkrastev1blog.com\/2014\/05\/11\/important-shell-script-commands-which-are-oft-used\/","url_meta":{"origin":107,"position":5},"title":"\u0418\u0445\u044d\u043d\u0445\u0434\u044d\u044d \u0430\u0448\u0438\u0433\u043b\u0430\u0434\u0430\u0433 Shell \u0441\u043a\u0440\u0438\u043f\u0442\u0438\u0439\u043d \u0447\u0443\u0445\u0430\u043b \u043a\u043e\u043c\u0430\u043d\u0434\u0443\u0443\u0434","author":"vkrastev2014","date":"11.05.2014","format":false,"excerpt":"Here is a list of some important shell commands: ---- Using Screen command screen -ls -- for a list of avaliable active screens screen -x .... - the Name from -ls output to join to this active screen Go out of the Screen with 'ctrl a+d' without stopping it ----\u2026","rel":"","context":"In &quot;\u0411\u0443\u0441\u0430\u0434&quot;","block_context":{"text":"\u0411\u0443\u0441\u0430\u0434","link":"https:\/\/vkrastev1blog.com\/category\/%d0%b1%d1%83%d1%81%d0%b0%d0%b4\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/posts\/107","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/users\/65283547"}],"replies":[{"embeddable":true,"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/comments?post=107"}],"version-history":[{"count":4,"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/posts\/107\/revisions"}],"predecessor-version":[{"id":111,"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/posts\/107\/revisions\/111"}],"wp:attachment":[{"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/media?parent=107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/categories?post=107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/tags?post=107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}