Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
7c8df847
Commit
7c8df847
authored
Jun 19, 2020
by
Arihant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added project transfer method
parent
081d1801
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
doc/administration/troubleshooting/gitlab_rails_cheat_sheet.md
...dministration/troubleshooting/gitlab_rails_cheat_sheet.md
+14
-0
No files found.
doc/administration/troubleshooting/gitlab_rails_cheat_sheet.md
View file @
7c8df847
...
...
@@ -201,6 +201,20 @@ project.repository_read_only = true; project.save
project
.
update!
(
repository_read_only:
true
)
```
### Transfer project from one namespace to another
```
ruby
p
=
Project
.
find_by_full_path
(
''
)
# To set the owner of the project
current_user
=
p
.
creator
# Namespace where you want this to be moved.
namespace
=
Namespace
.
find_by_full_path
(
""
)
::
Projects
::
TransferService
.
new
(
p
,
current_user
).
execute
(
namespace
)
```
### Bulk update service integration password for _all_ projects
For example, change the Jira user's password for all projects that have the Jira
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment