{"id":351,"date":"2022-01-07T18:29:00","date_gmt":"2022-01-07T21:29:00","guid":{"rendered":"https:\/\/gladiston.net.br\/?page_id=351"},"modified":"2022-07-13T16:05:35","modified_gmt":"2022-07-13T19:05:35","slug":"usando-git-em-projetos-fpc-lazarus","status":"publish","type":"page","link":"https:\/\/gladiston.net.br\/en\/programacao\/lazarus-ide\/usando-git-em-projetos-fpc-lazarus\/","title":{"rendered":"Using GIT in FPC\/Lazarus projects"},"content":{"rendered":"<p>The commands below are only valid for the current project unless you use \u2013global then folders without user id will use the global parameter:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>git config user.name &quot;My name&quot;<br>git config user.email &quot;mymail@gmail.com&quot;<\/code><\/code><\/pre>\n\n\n\n<p>You might also appreciate these, useful for dealing with files coming from Windows:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>git config core.autocrlf false<br>git config core.ignorecase true<br>git config core.fileMode false<\/code><\/code><\/pre>\n\n\n\n<p>Do you use git in the cloud? how about 8h without typing the password again? Or 86400 for 1 full day<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>git config credential.helper store<br>git config credential.helper &#039;cache --timeout=28800&#039;<\/code><\/code><\/pre>\n\n\n\n<p>But on linux this doesn&#039;t work anymore, so it is necessary to give permission to the operating system as its key holder for these operations so use the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>sudo dnf install git-credential-libsecret<br>git config credential.helper \/usr\/libexec\/git-core\/git-credential-libsecret<\/code><\/code><\/pre>\n\n\n\n<p>Of course the first &#039;<strong>git push<\/strong>&#039; will still need your credentials, but not later.<\/p>","protected":false},"excerpt":{"rendered":"<p>Os comandos abaixo valem apenas para o projeto atual a menos que use &#8211;global da\u00ed pastas sem identifica\u00e7\u00e3o de usu\u00e1rio usar\u00e3o o par\u00e2metro global: Talvez aprecie tamb\u00e9m estes, \u00fatil para lidar arquivos provenientes do Windows: Usa git na nuvem? que tal 8h sem digitar a senha novamente? Ou 86400 para 1 dia inteiro Mas no [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":159,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"templates\/template-full-width.php","meta":{"footnotes":""},"class_list":["post-351","page","type-page","status-publish","hentry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/pages\/351","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/comments?post=351"}],"version-history":[{"count":4,"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/pages\/351\/revisions"}],"predecessor-version":[{"id":882,"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/pages\/351\/revisions\/882"}],"up":[{"embeddable":true,"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/pages\/159"}],"wp:attachment":[{"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/media?parent=351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}